refactor: make nanuqsaurus module-based; keep btrfs install profile

This commit is contained in:
randogoth 2026-02-04 20:53:05 +02:00
parent e640b43b2f
commit bb138278f1
13 changed files with 218 additions and 173 deletions

View file

@ -13,20 +13,28 @@ Pick a stable disk path (prefer /dev/disk/by-id/*) and run:
--disk main /dev/disk/by-id/<your-disk> \
--mount-point /mnt
Adopt an existing NixOS install (no repartition)
-----------------------------------------------
Create a small local wrapper flake that imports this repo as a module and keeps
your machines `hardware-configuration.nix` for mounts/boot.
See: docs/adopt.md (on the custom ISO: `/etc/nixos/docs/adopt.md`)
ISO shortcut
------------
If you are using the custom ISO from this repo, it embeds the flake at /etc/nixos.
You can run the wrapper script (defaults: DISK=/dev/vda, TARGET_HOST=nanuqsaurus):
You can run the wrapper script (defaults: DISK=/dev/vda, TARGET_HOST=nanuqsaurus-btrfs):
sudo /etc/nixos/scripts/install-btrfs.sh
Optionally set DISK, TARGET_HOST, and FLAKE:
sudo DISK=/dev/disk/by-id/<your-disk> TARGET_HOST=nanuqsaurus \
FLAKE="github:<owner>/<repo>" \
sudo DISK=/dev/disk/by-id/<your-disk> TARGET_HOST=nanuqsaurus-btrfs \
FLAKE="git+https://codeberg.org/<owner>/<repo>.git" \
/etc/nixos/scripts/install-btrfs.sh