darwin: sudo activation

This commit is contained in:
zowoq 2025-02-16 12:32:20 +10:00
parent 0a1b2a3e33
commit 29fa165297
2 changed files with 2 additions and 3 deletions

View file

@ -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"