updated readme

This commit is contained in:
baritone 2025-04-15 11:50:17 +02:00
parent 2be4a5df9d
commit 8a504a00b6
2 changed files with 7 additions and 1 deletions

BIN
.README.md.swp Normal file

Binary file not shown.

View file

@ -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.