added storage optimization settings to optimise and gc the nix store.
This commit is contained in:
parent
02458fec21
commit
80ac00a7cf
|
@ -14,9 +14,15 @@
|
||||||
lib.mkIf config.targets.genericLinux.enable
|
lib.mkIf config.targets.genericLinux.enable
|
||||||
{
|
{
|
||||||
package = pkgs.nix;
|
package = pkgs.nix;
|
||||||
settings.experimental-features = ["nix-command" "flakes"];
|
settings = {
|
||||||
settings.max-jobs = "auto";
|
experimental-features = ["nix-command" "flakes"];
|
||||||
gc.automatic = true;
|
max-jobs = "auto";
|
||||||
|
};
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
frequency = "weekly";
|
||||||
|
options = "--delete-older-than 30d";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
imports = [
|
imports = [
|
||||||
../hostopts.nix
|
../hostopts.nix
|
||||||
|
|
|
@ -13,6 +13,15 @@
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
optimise.automatic = true;
|
||||||
|
settings = {
|
||||||
|
auto-optimise-store = true;
|
||||||
|
};
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 30d";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
|
|
Loading…
Reference in a new issue