feat(installer): interactive one-command fleet installer #793
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "installer-overhaul"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overhauls packages/installer.nix into the boot-a-stock-ISO, run-one-command flow: fzf host picker; disks come from the host's baked-in disko config (no more scheme-matching or hand-typed --args); confirm/remap each disk against the machine's real block devices; passphrase prompt only for encrypted layouts; typed-hostname confirmation; disko; optional pre-generated host-key provisioning from secrets/-provision.yaml (so sops-nix decrypts on first boot); nixos-install.
Validation so far: package builds (shellcheck), and the JSON-roundtrip remap path was proven with disko --dry-run against fennec's config. Not yet run end-to-end on real hardware — first real customer is the fennec install (#790).
🤖 Generated with Claude Code
https://claude.ai/code/session_015yzzxRtnuvnRhA1Jt7Xsie
Overhaul packages/installer.nix into the boot-ISO one-command flow: sudo nix run --extra-experimental-features 'nix-command flakes' \ git+https://git.lyte.dev/lytedev/nix#installer - Pick the host with fzf; its disk layout comes from the disko config baked into the nixosConfiguration (diskConfig), killing the old 'select a partition scheme that must match + hand-type --arg soup'. - Shows the machine's real block devices and confirms each configured disk against them; a mismatched device name (sda vs nvme0n1) can be remapped for the run — the devices are evaled to JSON (internal _-prefixed/function options stripped; roundtrip verified with disko --dry-run) and rewritten with jq, repo config untouched. - Encryption passphrase prompted only when the layout references /tmp/secret.key. - Typed-hostname confirmation before disko destroys anything. - If secrets/<host>-provision.yaml exists (pre-generated host identity, e.g. fennec's), offers to decrypt the ssh host key into /mnt/etc/ssh before nixos-install so sops-nix works on first boot. Not yet exercised end-to-end on real hardware; the disko dry-run and package build (shellcheck) are the current validation. First real customer is the fennec install (PR #790).