16 lines
380 B
Nix
16 lines
380 B
Nix
{ pkgs, ... }: {
|
|
# Auto GC and store optimizations
|
|
nix = {
|
|
settings.trusted-users = [ "root" ];
|
|
gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 90d";
|
|
};
|
|
optimise.automatic = true;
|
|
extraOptions = ''
|
|
min-free = ${toString (100 * 1024 * 1024)}
|
|
max-free = ${toString (1024 * 1024 * 1024)}
|
|
'';
|
|
};
|
|
}
|