cli: use sudo consistently when running nixos-rebuild switch

This commit is contained in:
Michael Hoang
2025-04-13 15:06:00 +02:00
parent a575894a83
commit a0117c51c1

View File

@@ -170,6 +170,7 @@ def deploy_machines(machines: list[Machine]) -> None:
switch_cmd, switch_cmd,
RunOpts(check=False, msg_color=MsgColor(stderr=AnsiColor.DEFAULT)), RunOpts(check=False, msg_color=MsgColor(stderr=AnsiColor.DEFAULT)),
extra_env=env, extra_env=env,
become_root=True,
) )
# Last output line (config store path) is printed to stdout instead of stderr # Last output line (config store path) is printed to stdout instead of stderr