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:
Sam Lehman 2024-04-27 12:51:04 -04:00 committed by mergify[bot]
parent 923491d14b
commit b18e74f224

View File

@ -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;