Automatically clean up /nix. I don't have unlimited storage.
This commit is contained in:
parent
f0470d4dbf
commit
b46c4e65ea
@ -293,6 +293,14 @@
|
|||||||
magicOrExtension = ''\x7fELF....AI\x02'';
|
magicOrExtension = ''\x7fELF....AI\x02'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Automatic cleanup and optimization
|
||||||
|
nix.optimize.automatic = true;
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 15d";
|
||||||
|
}
|
||||||
|
|
||||||
# DO NOT CHANGE
|
# DO NOT CHANGE
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user