feat: added in some automatic garbage collection
Also merged all teh nix options together.
This commit is contained in:
parent
18155ec6e1
commit
667c335839
2 changed files with 21 additions and 7 deletions
|
@ -69,11 +69,6 @@ in {
|
|||
}
|
||||
];
|
||||
|
||||
nix.settings.trusted-users = [
|
||||
"root"
|
||||
"@skynet-admins-linux"
|
||||
];
|
||||
|
||||
# give users a home dir
|
||||
security.pam.services.sshd.makeHomeDir = true;
|
||||
|
||||
|
|
|
@ -25,8 +25,27 @@
|
|||
../applications/restic.nix
|
||||
];
|
||||
|
||||
# flakes are essensial
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
nix = {
|
||||
settings = {
|
||||
# flakes are essensial
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
trusted-users = [
|
||||
"root"
|
||||
"@skynet-admins-linux"
|
||||
];
|
||||
};
|
||||
|
||||
# https://nixos.wiki/wiki/Storage_optimization
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
extraOptions = ''
|
||||
min-free = ${toString (100 * 1024 * 1024)}
|
||||
max-free = ${toString (1024 * 1024 * 1024)}
|
||||
'';
|
||||
};
|
||||
|
||||
system.stateVersion = "22.11";
|
||||
|
||||
|
|
Loading…
Reference in a new issue