From 3ebbfc62615d4ba253a4dd96bac0f4b2128a2b6d Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 7 Sep 2022 11:56:51 +0200 Subject: [PATCH] rebuild: set NIX_PATH like everywhere else --- pkgs/krops/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/krops/default.nix b/pkgs/krops/default.nix index a0244c3..04c38cf 100644 --- a/pkgs/krops/default.nix +++ b/pkgs/krops/default.nix @@ -10,9 +10,8 @@ in args: target: runShell target {} (withNixOutputMonitor target useNixOutputMonitor /* sh */ '' - nixos-rebuild -I ${ - lib.concatMapStringsSep " " lib.escapeShellArg ([target.path] ++ args) - } + NIX_PATH=${lib.escapeShellArg target.path} \ + nixos-rebuild ${lib.escapeShellArgs args} ''); runShell = target: {