diff --git a/fileserver/configuration.nix b/fileserver/configuration.nix index a68ce81..71d97a3 100644 --- a/fileserver/configuration.nix +++ b/fileserver/configuration.nix @@ -34,6 +34,17 @@ services.zfs.autoScrub.enable = true; services.zfs.trim.enable = true; + # Maintenance + system.autoUpgrade.enable = true; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 10d"; + }; + nix.optimise.automatic = true; + nix.optimise.dates = [ "03:45" ]; + nix.settings.auto-optimise-store = true; + # Firmware services.fwupd.enable = true; hardware.firmware = with pkgs; [ firmwareLinuxNonfree ];