garbage collection

This commit is contained in:
Clara Dautermann 2025-06-01 14:53:38 +02:00
parent ee1e1d18b5
commit 64746e9071
Signed by: clara
GPG key ID: 223391B52FAD4463

View file

@ -96,6 +96,15 @@
}; };
}; };
# garbage collection & optimization
nix.optimise.automatic = true;
nix.optimise.dates = [ "03:45" ]; # Optional; allows customizing optimisation schedule
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions