diff options
Diffstat (limited to 'users/tazjin')
-rw-r--r-- | users/tazjin/nixos/tverskoy/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/users/tazjin/nixos/tverskoy/default.nix b/users/tazjin/nixos/tverskoy/default.nix index d8829b2ecf55..e86b20fc3fc2 100644 --- a/users/tazjin/nixos/tverskoy/default.nix +++ b/users/tazjin/nixos/tverskoy/default.nix @@ -18,6 +18,7 @@ config: let in lib.fix(self: { imports = [ "${depot.third_party.impermanence}/nixos.nix" + "${depot.path + "/ops/modules/automatic-gc.nix"}" "${pkgs.home-manager.src}/nixos" ]; @@ -181,6 +182,15 @@ in lib.fix(self: { start = "${depot.users.tazjin.emacs}/bin/tazjins-emacs"; }; }; + + # Automatically collect garbage from the Nix store. + depot.automatic-gc = { + enable = true; + interval = "1 hour"; + diskThreshold = 42; # GiB + maxFreed = 100; # GiB + preserveGenerations = "14d"; + }; }; # Automatically detect location to use for redshift |