|
|
|
|
|
by diarrhea
139 days ago
|
|
I have been using nixos-rebuild with target host and it has been totally fine. The only thing I have not solved is password-protected sudo on the target host. I deploy using a dedicated user, which has passwordless sudo set up to work. Seems like a necessary evil. |
|
> nix run nixpkgs#nixos-rebuild -- switch --flake .#my-flake-target --target-host nixos@$192.168.x.x --sudo --ask-sudo-password --no-reexec