Add automatic Nix GC and store optimisation to NixOracle

Weekly GC removing generations older than 30 days.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ltadeu6 2026-05-26 18:04:33 -03:00
parent 6b3f8709a1
commit 50300518e1
No known key found for this signature in database
GPG key ID: FB9FDAB6B6F3418D

View file

@ -54,6 +54,13 @@ in {
boot.tmp.cleanOnBoot = true; boot.tmp.cleanOnBoot = true;
zramSwap.enable = true; zramSwap.enable = true;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
nix.optimise.automatic = true;
nix.settings.require-sigs = false; nix.settings.require-sigs = false;
networking.hostName = "NixOracle"; networking.hostName = "NixOracle";