run our Nix shell and cd into nix/nodes/devm. Then run
$ export NIX_SSHOPTS='-p 10022'
$ nixos-rebuild switch --fast --flake .#devm \
--target-host admin@localhost --build-host admin@localhost \
--use-remote-sudo
# Enter the VM's admin password when prompted—unless you changed the
# default config, the password is `abc123`.
Find out how to do a remote Flake deployment with a sudoer instead of root.
I tried it with the dev VM, using
admin
as a user but got an error message saying Nix couldn't runsudo
. To reproduce, start the dev VMrun our Nix shell and cd into
nix/nodes/devm
. Then run