nix: auto clean store weekly

This commit is contained in:
Nico 2025-05-03 16:15:58 +10:00
parent a2794a99cd
commit 0662d79447

View file

@ -31,6 +31,13 @@
networking.firewall.allowedTCPPorts = [ 22 ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Auto store clean
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
# This option defines the first version of NixOS you have installed on this particular machine, and is used
# to maintain compatibility with application data (e.g. databases) created on older NixOS versions. Most
# users should NEVER change this value after the initial install, for any reason, even if you've upgraded