added space optimization stuff

This commit is contained in:
John Lancaster
2025-03-10 21:56:30 -05:00
parent 7c55d2875c
commit 229ab0ea80

View File

@@ -43,4 +43,13 @@
"30 2 * * * /run/current-system/sw/bin/nfs > /etc/nixos/auto_update.log 2>&1" "30 2 * * * /run/current-system/sw/bin/nfs > /etc/nixos/auto_update.log 2>&1"
]; ];
}; };
# https://nixos.wiki/wiki/Storage_optimization
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
nix.optimise.automatic = true;
nix.optimise.dates = [ "Mon *-*-* 05:00:00" ];
} }