diff --git a/systems/gandalf/default.nix b/systems/gandalf/default.nix index a2ca88e..0a22ca6 100644 --- a/systems/gandalf/default.nix +++ b/systems/gandalf/default.nix @@ -11,6 +11,7 @@ ../modules/programs.nix ../modules/gaming.nix ../modules/obs-studio.nix + ../modules/garbage-collection.nix ]; boot.loader.systemd-boot.enable = true; diff --git a/systems/modules/garbage-collection.nix b/systems/modules/garbage-collection.nix new file mode 100644 index 0000000..45db5f7 --- /dev/null +++ b/systems/modules/garbage-collection.nix @@ -0,0 +1,12 @@ +{ config, pkgs, ... }: + +{ + nix = { + settings.auto-optimise-store = true; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; + }; +}