summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2020-11-20 19:49:26 +0100
committerGitHub <noreply@github.com>2020-11-20 19:49:26 +0100
commitc207e1f71b85d7ed20f6bc8d91704ceec09ea5ef (patch)
treefc8d55ce8d89c591a57a70c280031f7109d8264b /pkgs
parent5ea125514e48c630120fbb6a44e9ae0c7932a123 (diff)
parentb83fd5c6827d831e0c185fe40a21581afbefc27b (diff)
Merge pull request #24 from jpotier/fix-sudo-for-remote
Add flag to nixos-rebuild
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/krops/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/krops/default.nix b/pkgs/krops/default.nix
index 184a12a..8336b51 100644
--- a/pkgs/krops/default.nix
+++ b/pkgs/krops/default.nix
@@ -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'}
'';