mirror of
https://github.com/nix-community/srvos.git
synced 2024-10-26 17:49:54 +03:00
fix: Remove Nix experiemental-feature repl-flake
after v2.22
Only set `nix.settings.experimental-features = ["repl-flake"]` when `config.nix.package.version` is older than version `2.22`. `repl-flake` was removed as an experimental feature and automatically enabled when using experimental feature: `flakes`
This commit is contained in:
parent
923491d14b
commit
b18e74f224
@ -1,4 +1,4 @@
|
||||
{ lib, ... }:
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
# Fallback quickly if substituters are not available.
|
||||
nix.settings.connect-timeout = 5;
|
||||
@ -7,8 +7,8 @@
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
"repl-flake"
|
||||
];
|
||||
] ++ lib.optional (lib.versionOlder (lib.versions.majorMinor config.nix.package.version) "2.22")
|
||||
"repl-flake";
|
||||
|
||||
# The default at 10 is rarely enough.
|
||||
nix.settings.log-lines = lib.mkDefault 25;
|
||||
|
Loading…
Reference in New Issue
Block a user