Auto-optimize store

This commit is contained in:
Nathan McCarty 2025-01-09 12:45:49 -05:00
parent 8df25e2fc8
commit 0b933dc9a5

View file

@ -8,11 +8,6 @@
imports = [
];
nix.settings.trusted-users = [
"root"
"nathan"
];
programs.ssh.extraConfig = ''
Host eu.nixbuild.net
PubkeyAcceptedKeyTypes ssh-ed25519
@ -29,6 +24,18 @@
};
nix = {
settings = {
auto-optimise-store = true;
trusted-users = [
"root"
"nathan"
];
};
gc = {
automatic = true;
dates = "hourly";
options = "--delete-older-than 7d";
};
distributedBuilds = true;
buildMachines = [
{