mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Nix] use bleeding edge Nix version + conditional repl-flake
Included with "flakes" if Nix version is >= 2.19
This commit is contained in:
parent
67038259e8
commit
6e94b4ae77
1 changed files with 3 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ in
|
|||
};
|
||||
|
||||
|
||||
nix.package = optimizePkg { lto = true; level = "slower"; } pkgs.nix;
|
||||
nix.package = optimizePkg { lto = true; level = "slower"; } pkgs.nixVersions.latest;
|
||||
|
||||
nix.settings.system-features = [ "big-parallel" "kvm" "benchmark" ]
|
||||
++ optional ( ! isNull generalCfg.cpu.arch ) "gccarch-${generalCfg.cpu.arch}"
|
||||
|
|
@ -96,7 +96,8 @@ in
|
|||
|
||||
nix.settings.builders-use-substitutes = true;
|
||||
nix.settings.substitute = true;
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" "repl-flake" ]
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ]
|
||||
++ optional (versionOlder config.nix.package.version "2.19") "repl-flake"
|
||||
++ optional cfg.contentAddressed "ca-derivations";
|
||||
|
||||
nix.settings.download-attempts = 5;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue