rebuild: set NIX_PATH like everywhere else

This commit is contained in:
tv 2022-09-07 11:56:51 +02:00
parent e5c13343a6
commit 3ebbfc6261
1 changed files with 2 additions and 3 deletions

View File

@ -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: {