clan_cli: fix support for non-root deployment user

This commit is contained in:
RTUnreal
2025-03-25 22:40:02 +01:00
committed by Qubasa
parent 48fa29afad
commit 0ea9b45838
2 changed files with 14 additions and 30 deletions

View File

@@ -185,6 +185,7 @@ def deploy_machines(machines: list[Machine]) -> None:
test_cmd,
RunOpts(msg_color=MsgColor(stderr=AnsiColor.DEFAULT)),
extra_env=env,
become_root=True,
)
# retry nixos-rebuild switch if the first attempt failed
@@ -193,6 +194,7 @@ def deploy_machines(machines: list[Machine]) -> None:
switch_cmd,
RunOpts(msg_color=MsgColor(stderr=AnsiColor.DEFAULT)),
extra_env=env,
become_root=True,
)
with AsyncRuntime() as runtime: