Nix : Use min-free instead of gc.

This commit is contained in:
Dmitry Voronin 2024-03-04 00:21:42 +03:00
parent 89b0c457b1
commit a876166b4e

View file

@ -1,16 +1,18 @@
{ environment, ... }: {
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
nixpkgs.config.allowUnfree = true;
nix.settings.auto-optimise-store = true;
nix.extraOptions = ''
experimental-features = nix-command flakes
keep-derivations = true
keep-outputs = true
min-free = ${toString (10 * 1024 * 1024 * 1024)}
'';
nix.gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 7d";
persistent = true;
};
nix.settings.auto-optimise-store = true;
nixpkgs.config.allowUnfree = true;
# max-free = ${toString (10 * 1024 * 1024 * 1024)}
# nix.gc = {
# automatic = true;
# dates = "weekly";
# options = "--delete-older-than 30d";
# persistent = true;
# };
}