diff options
author | Vincent Ambo <mail@tazj.in> | 2024-10-27T12·39+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-10-27T21·00+0000 |
commit | 9882f0d55c65b82aecd53fbbdd765801a53e51fb (patch) | |
tree | f08e9b69bfd90fcc7e00275825a87a03f72cc8c0 /users | |
parent | f5c9556129dd4a7e03eed24b59373a58d31d7413 (diff) |
feat(tazjin/nixos): enable automatic-gc on all physical machines r/8872
Change-Id: I115c29da5d7038a5e6e917928a16a2b8c6eb084e Reviewed-on: https://cl.tvl.fyi/c/depot/+/12692 Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'users')
-rw-r--r-- | users/tazjin/nixos/modules/physical.nix | 9 | ||||
-rw-r--r-- | users/tazjin/nixos/tverskoy/default.nix | 9 |
2 files changed, 9 insertions, 9 deletions
diff --git a/users/tazjin/nixos/modules/physical.nix b/users/tazjin/nixos/modules/physical.nix index 92b22112d4f4..baae1b6b5bfe 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 006a27f9f20f..c6cd943b99b7 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 = { |