Add automatic garbage collection

This commit is contained in:
Tobias Ostner 2025-10-03 08:23:02 +02:00
parent 1d4087ea37
commit a729149931

View file

@ -1,6 +1,10 @@
{ hostname, username }: { hostname, username }:
{ {
nix = { nix = {
gc = {
automatic = true;
options = "--delete-older-than 30d";
};
optimise.automatic = true; optimise.automatic = true;
settings = { settings = {
builders-use-substitutes = true; builders-use-substitutes = true;