fix: use --sudo --ask-sudo-password instead of deprecated --use-remote-sudo
This commit is contained in:
parent
10bb0c8e34
commit
6037b55091
7 changed files with 7 additions and 6 deletions
|
|
@ -153,7 +153,7 @@ nix build .#nixosConfigurations.<hostname>.config.system.build.toplevel
|
|||
|
||||
# Deploy with nixos-rebuild
|
||||
NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .#<hostname> \
|
||||
--target-host <user>@<hostname> --use-remote-sudo
|
||||
--target-host <user>@<hostname> --sudo --ask-sudo-password
|
||||
|
||||
# Or using deploy-rs
|
||||
nix run github:serokell/deploy-rs -- .#<hostname>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue