rename hw-generate to update-hardware-config

This commit is contained in:
Jörg Thalheim
2024-09-20 13:39:53 +02:00
parent bef19592cd
commit b4fb4f180b
4 changed files with 10 additions and 10 deletions

View File

@@ -144,14 +144,14 @@ These steps will allow you to update your machine later.
Generate the `hardware-configuration.nix` file for your machine by executing the following command:
```bash
clan machines hw-generate [MACHINE_NAME]
clan machines update-hardware-config [MACHINE_NAME]
```
replace `[MACHINE_NAME]` with the name of the machine i.e. `jon` and `[HOSTNAME]` with the `ip_adress` or `hostname` of the machine within the network. i.e. `<IP>`
!!! Example
```bash
clan machines hw-generate jon
clan machines update-hardware-config jon
```
This command connects to the ip configured in the previous step, runs `nixos-generate-config` to detect hardware configurations (excluding filesystems), and writes them to `machines/jon/hardware-configuration.nix`.