mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:13:55 -05:00
nix: optimize store on schedule rather than with each build
This commit is contained in:
parent
08ea8ce5df
commit
07e1ef72e8
|
@ -84,6 +84,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
# Optimize the Nix store on a schedule.
|
||||||
|
optimise.automatic = true;
|
||||||
gc = {
|
gc = {
|
||||||
# Delete generations older than 7 days.
|
# Delete generations older than 7 days.
|
||||||
automatic = true;
|
automatic = true;
|
||||||
|
@ -97,8 +99,8 @@
|
||||||
max-free = ${toString (1024 * 1024 * 1024)}
|
max-free = ${toString (1024 * 1024 * 1024)}
|
||||||
'';
|
'';
|
||||||
settings = {
|
settings = {
|
||||||
# Automatically optimize the Nix store in the background.
|
# Automatically optimize the Nix store during every build.
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = false;
|
||||||
# Enable experimental `nix` command and flakes.
|
# Enable experimental `nix` command and flakes.
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
substituters = [
|
substituters = [
|
||||||
|
|
Loading…
Reference in a new issue