Install Arch with archinstall:
- Manual partition. 4 GiB /boot, rest btrfs with @, @home, @log, @cache
- LUKS encryption for root partition
- Limine bootloader UKI enabled
- Minimal install (no DE or WM)
- Add a text editor (I like micro)
| #!/usr/bin/env bash | |
| # 1. Remove all system profiles | |
| sudo rm -f /nix/var/nix/profiles/system* | |
| sudo rm -f /nix/var/nix/profiles/per-user/*/* | |
| # 2. Clean everything | |
| sudo nix-collect-garbage -d | |
| # 3. Rebuild from scratch |