Add nix optimise automatically
This commit is contained in:
parent
afd3a76470
commit
7c309df1ad
1 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,11 @@
|
||||||
# Enable flakes: https://nixos.wiki/wiki/Flakes
|
# Enable flakes: https://nixos.wiki/wiki/Flakes
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
nix.optimise = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "daily";
|
||||||
|
};
|
||||||
|
|
||||||
# Garbage collection -- Keep the system clean
|
# Garbage collection -- Keep the system clean
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
|
|
Loading…
Reference in a new issue