Nix : Use min-free instead of gc.
This commit is contained in:
parent
89b0c457b1
commit
a876166b4e
|
@ -1,16 +1,18 @@
|
||||||
{ environment, ... }: {
|
{ environment, ... }: {
|
||||||
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
|
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
nix.settings.auto-optimise-store = true;
|
||||||
nix.extraOptions = ''
|
nix.extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
keep-derivations = true
|
keep-derivations = true
|
||||||
keep-outputs = true
|
keep-outputs = true
|
||||||
|
min-free = ${toString (10 * 1024 * 1024 * 1024)}
|
||||||
'';
|
'';
|
||||||
nix.gc = {
|
# max-free = ${toString (10 * 1024 * 1024 * 1024)}
|
||||||
automatic = true;
|
# nix.gc = {
|
||||||
dates = "daily";
|
# automatic = true;
|
||||||
options = "--delete-older-than 7d";
|
# dates = "weekly";
|
||||||
persistent = true;
|
# options = "--delete-older-than 30d";
|
||||||
};
|
# persistent = true;
|
||||||
nix.settings.auto-optimise-store = true;
|
# };
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue