Automatically clean up /nix. I don't have unlimited storage.

This commit is contained in:
CronyAkatsuki 2024-02-12 20:29:17 +01:00
parent f0470d4dbf
commit b46c4e65ea

View File

@ -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";