updated readme
This commit is contained in:
parent
2be4a5df9d
commit
8a504a00b6
BIN
.README.md.swp
Normal file
BIN
.README.md.swp
Normal file
Binary file not shown.
|
@ -39,13 +39,18 @@ $ sudo nixos-generate-config --root /mnt --no-filesystem
|
|||
This will generate the file `/mnt/hardware-config.nix` that you can then copy to your
|
||||
computer.
|
||||
|
||||
|
||||
## Install configuration
|
||||
|
||||
### Prepare repo
|
||||
|
||||
1. Clone the repo
|
||||
1. Copy the `hardware-config.nix` from your device to the repo folder.
|
||||
- `git clone https://git.spoodythe.one/spoody/server-configuration.git`
|
||||
1. Copy the `hardware-configuration.nix` from your device to the repo folder.
|
||||
- `scp nix@<ip>:/mnt/hardware-configuration.nix /path/to/repo/hardware-configuration.nix`
|
||||
1. Add/change the device configuration in `flake.nix`
|
||||
- This includes configuring which (if any) disks should be included in the raid array, as well as which disk is the main root disk.
|
||||
|
||||
|
||||
### Install remotely
|
||||
|
||||
|
@ -57,6 +62,7 @@ nix run github:nix-community/nixos-anywhere -- --flake '.#<your configuration>'
|
|||
|
||||
This will automatically install the configuration to your server.
|
||||
|
||||
|
||||
## Copy configuration to server
|
||||
|
||||
Once the configuration has been installed push your modified repo to a git service and pull it on the server.
|
||||
|
|
Loading…
Reference in a new issue