Adding GC

This commit is contained in:
xqtc161 2024-02-10 23:46:24 +01:00
parent ffe7baf013
commit b6fad0b332
2 changed files with 9 additions and 0 deletions

8
hosts/gc.nix Normal file
View file

@ -0,0 +1,8 @@
{ config, ... }:
{
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 10d";
};
}

View file

@ -5,6 +5,7 @@
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
../antivirus.nix ../antivirus.nix
../gc.nix
#nixos-hardware.nixosModules.lenovo.thinkpad.t480 #nixos-hardware.nixosModules.lenovo.thinkpad.t480
#(builtins.getFlake (builtins.fetchGit "github:NixOs/nixos-hardware")).nixosModules.lenovo-thinkpad-t480 #(builtins.getFlake (builtins.fetchGit "github:NixOs/nixos-hardware")).nixosModules.lenovo-thinkpad-t480
]; ];