README: add installation guide

This commit is contained in:
Primrose 2025-06-23 20:25:09 +02:00
parent ee1fc955d9
commit 677d1e2365
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -1,5 +1,28 @@
This repo is managed with Nix + GNU stow This repo is managed with Nix + GNU stow
# Installation Guide (for myself & those who are interested)
- Generate image & boot
We do this because the default one doesn't have all the utilities we want (e.g. disko).
- generate image `nix build .#nixosConfigurations.installer.config.system.build.isoImage`
- `dd` the image to a flash drive (remember to `sync`)
- boot off that flash drive
- Format disk (DANGER)
- modify the disko file to point to the disk to be formatted
- Installation (iirc the disko auto install has some issues)
```bash
# Are you sure the disko config has the right drive path?
disko -- -m disko ./disko.nix # format the drive
# optional for unknown hard ware
nixos-generate-config --no-filesystems --root /mnt --dir . # disko will take care of the file system configuration
# put the generated config in the right path and import it
nixos-install --flake .dotfiles#<hostname>
# profit
```
# Hosts # Hosts
- vanadium: Framework 13 (AMD 7040 Series) - vanadium: Framework 13 (AMD 7040 Series)
- tungsten: MacBook Air 2014 (because it gets really hot) - tungsten: MacBook Air 2014 (because it gets really hot)