@cryptotaxi247 / infra / commits / 5cc27547

hydra-mirror: use a scratch dir within HOMEDIR

Pierre Bourdon committed Feb 20, 2024 at 23:53 UTC 5cc275479217df3b57c083fda94acc57ea56fa03
1 file changed +4 -4
modules/hydra-mirror.nix
+4 -4
@@ -28,7 +28,7 @@ let
28 unitConfig = {
29 After = [ "networking.target" ];
30 };
31 - environment.TMPDIR = "/scratch/hydra-mirror";
31 + environment.TMPDIR = "/home/hydra-mirror/scratch";
32 environment.GC_INITIAL_HEAP_SIZE = "4g";
33 };
34 };
@@ -56,9 +56,9 @@ in
56
57 systemd.tmpfiles.rules = [
58 ''
59 - d /scratch/hydra-mirror 0755 hydra-mirror users 10d
60 - F /scratch/hydra-mirror/nixos-files.sqlite - - - 8d
61 - e /scratch/hydra-mirror/release-*/* - - - 1d -
59 + d /home/hydra-mirror/scratch 0755 hydra-mirror users 10d
60 + F /home/hydra-mirror/scratch/nixos-files.sqlite - - - 8d
61 + e /home/hydra-mirror/scratch/release-*/* - - - 1d -
62 ''
63 ];
64