update readme regarding fixed switch_remote.sh script

This commit is contained in:
lilly 2025-02-21 18:55:25 +01:00
parent 4a2b25b8ae
commit 5a0cd84dd5
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g

View file

@ -94,11 +94,10 @@ See [sops-nix](https://github.com/Mic92/sops-nix)
Any NixOS VM can be reconfigured remotely by calling:
```bash
./switch_remote.sh <action> <machine>`
./switch_remote.sh <action> <host> <system-name>
```
- `<action>` can be any of the [standard nixos-rebuild actions](https://wiki.nixos.org/wiki/Nixos-rebuild), e.g. `boot`, `switch`, etc.
- `<macine>` should be the FQDN of the machine config to apply.
The script uses this argument to know how to reach the machine in addition to choosing a nixos configuration from this flake as system source (see [systems/](./systems/)).
This also means that you should have a config entry in you SSH config resolving the system name to an IP address (during the event, we will probably have an internal DNS server which also resolves the hostname).
- `<host>` is an ssh connection string (e.g. `noc@10.20.25.2`) and specifies where to deploy the configuration to.
- `<system-name>` should be the hostname of the system configuration to apply.
Any one of the systems defined in [systems/](./systems/) ending in `noc.eh22.intern` works.