From 9882f0d55c65b82aecd53fbbdd765801a53e51fb Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 27 Oct 2024 15:39:40 +0300 Subject: feat(tazjin/nixos): enable automatic-gc on all physical machines Change-Id: I115c29da5d7038a5e6e917928a16a2b8c6eb084e Reviewed-on: https://cl.tvl.fyi/c/depot/+/12692 Autosubmit: tazjin Tested-by: BuildkiteCI Reviewed-by: tazjin --- users/tazjin/nixos/modules/physical.nix | 9 +++++++++ users/tazjin/nixos/tverskoy/default.nix | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'users') 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 = { -- cgit 1.4.1