bastion: enable regular gc
Graham Christensen committed
Jan 31, 2020 at 03:25 UTC
1e1a041c3bb66082e2eb032739f56c15fff3350b
1 file changed
+3
-1
bastion/network.nix
+3
-1
@@ -150,8 +150,10 @@ in
150
pkgs.terraform-full
151
];
152
153
- #nix.gc.automatic = true;
153
+ nix.gc.automatic = true;
154
nix.gc.dates = "daily";
155
+ nix.gc.options = ''--max-freed "$((30 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $4 }')))"'';
156
+
157
158
# Temporary hack until we have proper users/roles.
159
services.openssh.extraConfig =