darwin: sudo activation
This commit is contained in:
parent
0a1b2a3e33
commit
29fa165297
2 changed files with 2 additions and 3 deletions
3
tasks.py
3
tasks.py
|
@ -23,8 +23,7 @@ def deploy(c: Any, hosts: str) -> None:
|
|||
|
||||
def deploy(h: DeployHost) -> None:
|
||||
if "darwin" in h.host:
|
||||
# don't use sudo for darwin-rebuild
|
||||
command = "darwin-rebuild"
|
||||
command = "sudo -H darwin-rebuild"
|
||||
target = f"{h.user}@{h.host}"
|
||||
else:
|
||||
command = "sudo nixos-rebuild"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue