diff --git a/hosts/gc.nix b/hosts/gc.nix new file mode 100644 index 0000000..2c5db81 --- /dev/null +++ b/hosts/gc.nix @@ -0,0 +1,8 @@ +{ config, ... }: +{ + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 10d"; + }; +} diff --git a/hosts/lilith/default.nix b/hosts/lilith/default.nix index d62b73f..bd26c31 100644 --- a/hosts/lilith/default.nix +++ b/hosts/lilith/default.nix @@ -5,6 +5,7 @@ [ # Include the results of the hardware scan. ./hardware-configuration.nix ../antivirus.nix + ../gc.nix #nixos-hardware.nixosModules.lenovo.thinkpad.t480 #(builtins.getFlake (builtins.fetchGit "github:NixOs/nixos-hardware")).nixosModules.lenovo-thinkpad-t480 ];