diff --git a/.README.md.swp b/.README.md.swp new file mode 100644 index 0000000..b7c01ac Binary files /dev/null and b/.README.md.swp differ diff --git a/README.md b/README.md index 83b208b..6a7ace3 100644 --- a/README.md +++ b/README.md @@ -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@:/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 '.#' 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.