diff --git a/configuration.nix b/configuration.nix index 16abeab..27c6c5c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -365,6 +365,12 @@ in { }; }; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + systemd.services."make-snapshot-dirs" = let vals = builtins.attrValues backup_paths; mountpoints = builtins.catAttrs "mountpoint" vals;