update readme regarding fixed switch_remote.sh script
This commit is contained in:
parent
4a2b25b8ae
commit
5a0cd84dd5
1 changed files with 4 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue