From a2c0cb0db795376c4af2e4026a8798508da23d42 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Wed, 5 Jan 2022 10:56:11 +0100 Subject: [PATCH] nixos-rebuild: Don't pass `--impure` to realization when building flake remotely and impurely It doesn't work and it's not required for building. --- pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh b/pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh index bfe03ecc5d8d..5f950eb8b76b 100755 --- a/pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh +++ b/pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh @@ -247,6 +247,8 @@ nixFlakeBuild() { local k="$1"; shift 1 evalArgs+=("$i" "$j" "$k") ;; + --impure) # We don't want this in buildArgs, it's only needed at evaluation time, and unsupported during realisation + ;; *) buildArgs+=("$i") ;;