update readme for deploying on remotes

This commit is contained in:
TheWanderingCrow 2025-01-29 10:59:59 -05:00
parent 2e94a15a10
commit d2b02793c3

View file

@ -9,3 +9,7 @@
## Formatting disks with disko ## Formatting disks with disko
`sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount <disk config path>` `sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount <disk config path>`
## Deploying to the remote
Note: If you need to specify the ssh key, you may inject extra cli options to the ssh command via the NIX_SSHOPTS environment variable
* Anywhere from local: `nixos-rebuild switch --flake .#<host> --target-host root@<ipaddr> --use-remote-sudo`