hydra-mirror: move some configuration from bastion to the Nix module
I can't think of a reason why this configuration shouldn't be part of the service config instead of the machine config.
Pierre Bourdon committed
Feb 20, 2024 at 23:41 UTC
5c26e311ab0b048b680b4dbc498e01da90992747
2 files changed
+1
-2
bastion/configuration.nix
-2
@@ -80,6 +80,4 @@ in
80
boot.kernel.sysctl."vm.swappiness" = lib.mkDefault 60;
81
82
boot.loader.grub.device = lib.mkForce "/dev/disk/by-id/nvme-Amazon_Elastic_Block_Store_vol0631f5232321abda4";
83
-
84
- systemd.tmpfiles.rules = [ "d /scratch/hydra-mirror 0755 hydra-mirror users 10d" ];
83
}
modules/hydra-mirror.nix
+1
@@ -51,6 +51,7 @@ in
51
52
systemd.tmpfiles.rules = [
53
''
54
+ d /scratch/hydra-mirror 0755 hydra-mirror users 10d
55
F /scratch/hydra-mirror/nixos-files.sqlite - - - 8d
56
e /scratch/hydra-mirror/release-*/* - - - 1d -
57
''