Extend README

This commit is contained in:
Andreas Zweili 2024-01-15 13:04:19 +01:00
parent 48eb870ee5
commit 52599d585f
1 changed files with 7 additions and 2 deletions

View File

@ -7,11 +7,16 @@ In addition some of the scripts required for installation will destroy your data
## Installation
1. For Raspis it's the easiest if you prepare the SD card/disk on another system. For a PC you can just boot the installation ISO directly.
1. For both devices you can format the disk/card with the following script `sudo ./scripts/format-disk.py`. It will walk you through the formatting process and for a Raspi4 it will prepare it for UEFI setup.
1. Next install the system with `sudo nixos-install --no-root-passwd --root /mnt/nixos --impure --flake .#SYSTEMNAME`
2. For both devices you can format the disk/card with the following script `sudo ./scripts/format-disk.sh`. Make sure to edit it beforehand, to point it to the correct disk.
3. Next install the system with `sudo nixos-install --no-root-passwd --root /mnt/nixos --impure --flake .#SYSTEMNAME`
4. Rename the partitions with the script `sudo ./scripts/rename-partitions.sh`. With this script as well. Check that you're pointing to the correct disk.
When everything is finished you can reboot the system and remove the USB stick. You have now a fully encrypted NixOS system.
### Additional script
- If you only want to prepare an SD card with an UEFI partition for a Raspberry Pi 4 you can use the script `sudo ./scripts/create-uefi.sh`
## Update remote systems
Simply run the script `scripts/remote_switch.sh` and it will iterate over