docs: update README
This commit is contained in:
parent
07c6c7b9fb
commit
cf283e49fa
11
README.md
11
README.md
|
@ -10,15 +10,21 @@ On a new machine run:
|
||||||
scripts/setup-partitions
|
scripts/setup-partitions
|
||||||
```
|
```
|
||||||
|
|
||||||
Then move the resulting `/etc/nixos/hardware-configuration.nix` to `./hardware/<config>.nix`.
|
Then move the resulting `/mnt/etc/nixos/hardware-configuration.nix` to `./hardware/<config>.nix`.
|
||||||
Update the configuration according to the script output, if necessary. Btrfs mount options likely need to be added, for example.
|
Update the configuration according to the script output, if necessary. Btrfs mount options likely need to be added, for example.
|
||||||
|
Copy the configuration from `/etc/nixos` to `/mnt/etc/nixos`.
|
||||||
|
|
||||||
Reference this hardware config in a `nixosConfigurations.<config>` section in `flake.nix`.
|
Reference this hardware config in a `nixosConfigurations.<config>` section in `flake.nix`.
|
||||||
|
|
||||||
To install run the following command where `<config>` matches `outputs.nixosConfigurations.<config>` in `flake.nix`:
|
To install run the following command where `<config>` matches `outputs.nixosConfigurations.<config>` in `flake.nix`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
nixos-install --flake '/etc/nixos#<config>'
|
nixos-install --flake '/mnt/etc/nixos#<config>'
|
||||||
|
```
|
||||||
|
|
||||||
|
After the installation finished, set a password for the user:
|
||||||
|
```
|
||||||
|
passwd <user>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Updating
|
## Updating
|
||||||
|
@ -48,4 +54,3 @@ Rebuild the system for a remote machine:
|
||||||
```sh
|
```sh
|
||||||
sudo nixos-rebuild switch --flake '/etc/nixos#<config>' --target-host user@hostname --use-remote-sudo
|
sudo nixos-rebuild switch --flake '/etc/nixos#<config>' --target-host user@hostname --use-remote-sudo
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue