mirror of
https://cgit.krebsco.de/krops
synced 2024-12-23 02:09:51 +01:00
Add flag to nixos-rebuild
In the case we need sudo for the remote target, the flag `--use-remote-sudo` must be passed if the target's ssh user is not root. If target's ssh user is root, it doesn't hurt to use sudo.
This commit is contained in:
parent
5ea125514e
commit
b83fd5c682
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,8 @@ in
|
|||
] ++ lib.optionals (buildTarget' != target') [
|
||||
"--build-host" "${buildTarget'.user}@${buildTarget'.host}"
|
||||
"--target-host" "${target'.user}@${target'.host}"
|
||||
] ++ lib.optionals target'.sudo [
|
||||
"--use-remote-sudo"
|
||||
]) buildTarget'}
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue