nix/os/devices: never use sudo for remote targets
This commit is contained in:
parent
6398d9f8b9
commit
62d1e8dec7
1 changed files with 4 additions and 2 deletions
|
@ -18,7 +18,9 @@ let
|
||||||
|
|
||||||
[[ -e "''${NIXOS_CONFIG}" ]]
|
[[ -e "''${NIXOS_CONFIG}" ]]
|
||||||
|
|
||||||
${if (builtins.elem rebuildarg rebuildargsSudo) then
|
${if (builtins.elem rebuildarg rebuildargsSudo)
|
||||||
|
&& builtins.match ".*--target-host.*" moreargs == null
|
||||||
|
then
|
||||||
"sudo -E \\"
|
"sudo -E \\"
|
||||||
else
|
else
|
||||||
""
|
""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue