diff --git a/users/tazjin/nixos/modules/physical.nix b/users/tazjin/nixos/modules/physical.nix index 92b22112d..baae1b6b5 100644 --- a/users/tazjin/nixos/modules/physical.nix +++ b/users/tazjin/nixos/modules/physical.nix @@ -114,5 +114,14 @@ in mosh.enable = true; ssh.startAgent = true; }; + + # Automatically collect garbage from the Nix store. + services.depot.automatic-gc = { + enable = true; + interval = "1 hour"; + diskThreshold = 16; # GiB + maxFreed = 50; # GiB + preserveGenerations = "14d"; + }; }; } diff --git a/users/tazjin/nixos/tverskoy/default.nix b/users/tazjin/nixos/tverskoy/default.nix index 006a27f9f..c6cd943b9 100644 --- a/users/tazjin/nixos/tverskoy/default.nix +++ b/users/tazjin/nixos/tverskoy/default.nix @@ -130,15 +130,6 @@ lib.fix (self: { ''; xserver.videoDrivers = [ "amdgpu" ]; - - # Automatically collect garbage from the Nix store. - depot.automatic-gc = { - enable = true; - interval = "1 hour"; - diskThreshold = 16; # GiB - maxFreed = 10; # GiB - preserveGenerations = "14d"; - }; }; systemd.user.services.lieer-tazjin = {