nix: optimize store on schedule rather than with each build

This commit is contained in:
Aly Raffauf 2024-04-07 22:10:37 -04:00
parent 08ea8ce5df
commit 07e1ef72e8

View file

@ -84,6 +84,8 @@
};
nix = {
# Optimize the Nix store on a schedule.
optimise.automatic = true;
gc = {
# Delete generations older than 7 days.
automatic = true;
@ -97,8 +99,8 @@
max-free = ${toString (1024 * 1024 * 1024)}
'';
settings = {
# Automatically optimize the Nix store in the background.
auto-optimise-store = true;
# Automatically optimize the Nix store during every build.
auto-optimise-store = false;
# Enable experimental `nix` command and flakes.
experimental-features = [ "nix-command" "flakes" ];
substituters = [