diff options
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/nixbox/configuration.nix | 7 | ||||
-rw-r--r-- | hosts/nixpad/configuration.nix | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/hosts/nixbox/configuration.nix b/hosts/nixbox/configuration.nix index 81213f9..f9de091 100644 --- a/hosts/nixbox/configuration.nix +++ b/hosts/nixbox/configuration.nix @@ -75,6 +75,13 @@ # Enable experimental features nix.settings.extra-experimental-features = ["flakes" "nix-command"]; + # Enable automatic gc + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + # I never want to touch this again security.rtkit.enable = true; services.pipewire = { diff --git a/hosts/nixpad/configuration.nix b/hosts/nixpad/configuration.nix index 5876618..3f7ea27 100644 --- a/hosts/nixpad/configuration.nix +++ b/hosts/nixpad/configuration.nix @@ -65,6 +65,13 @@ # Enable experimental features nix.settings.extra-experimental-features = ["flakes" "nix-command"]; + # Enable automatic gc + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + # Enable CUPS to print documents. services.printing.enable = true; |