From b18e74f2245eaae150bc753821079c2512fe1516 Mon Sep 17 00:00:00 2001 From: Sam Lehman <134539022+Lehmanator@users.noreply.github.com> Date: Sat, 27 Apr 2024 12:51:04 -0400 Subject: [PATCH] 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` --- nixos/common/nix.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/common/nix.nix b/nixos/common/nix.nix index 935164d..ca31fa9 100644 --- a/nixos/common/nix.nix +++ b/nixos/common/nix.nix @@ -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;