mirror of
https://cgit.krebsco.de/krops/
synced 2025-02-06 07:15:53 +00: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
@ -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 New Issue
Block a user