nix: auto clean store weekly
This commit is contained in:
parent
a2794a99cd
commit
0662d79447
1 changed files with 7 additions and 0 deletions
|
|
@ -31,6 +31,13 @@
|
||||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# 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
|
# 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
|
# 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
|
# users should NEVER change this value after the initial install, for any reason, even if you've upgraded
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue