diff --git a/common/services/nix-gc.nix b/common/services/nix-gc.nix new file mode 100644 index 0000000..5358d5a --- /dev/null +++ b/common/services/nix-gc.nix @@ -0,0 +1,7 @@ +{ + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; +} diff --git a/hosts/stuff/configuration.nix b/hosts/stuff/configuration.nix index 31a09fe..7e1e292 100644 --- a/hosts/stuff/configuration.nix +++ b/hosts/stuff/configuration.nix @@ -16,6 +16,8 @@ in { ../../common/components/de/plasma5.nix ../../common/services/syncthing.nix + ../../common/services/nix-gc.nix + # ../../common/services/sshd.nix ../../home/46d1/home.nix ]; diff --git a/hosts/yaseen/configuration.nix b/hosts/yaseen/configuration.nix index c0e06fe..7bf2858 100644 --- a/hosts/yaseen/configuration.nix +++ b/hosts/yaseen/configuration.nix @@ -29,6 +29,7 @@ in { ../../common/programs/steam.nix ../../common/services/auditd.nix + ../../common/services/nix-gc.nix ../../common/services/adguardhome.nix ../../common/services/syncthing.nix ../../common/services/usbguard.nix