getting-started.sh: fresh NixOS install to a hypervisor with one VM, no forge account #8
Labels
No labels
blocked
bug
decision
duplicate
enhancement
help wanted
invalid
landed?
question
ready-to-merge
stale
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/deploy#8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
There is no documented way from a fresh NixOS install to a running Allod hypervisor with one VM. The README's Fork section covers the deploy flake, but a first-time operator also has to: clone the right repos to the paths the host scripts expect, replace the hypervisor hardware module, generate a host identity and re-key every VM host key to it, decide what to do about forge credentials they do not have, point the deploy flake at their data, build the installer image, and rebuild the host. Walked by hand this was too much typing by the first clone.
Proposal: one script,
getting-started.sh, fetched withcurlfrom this repo and run on the fresh install as the user who will operate the host. It re-execs undernix-shellwith git, age and jq; clones the public repos under~/work/allod/; copies the machine's/etc/nixos/hardware-configuration.nixover the inventory's hypervisor hardware file; generates~/.ssh/hostand fresh VM host keys encrypted to it; takes the dev VM out of forge access and makes every repo host-provided, so no forge account is needed; points this flake's three data inputs at the local clones; builds the installer image into~/iso/; and runsnixos-rebuild boot. After a reboot the operator logs in with the password they already have (NixOS keeps mutable users, so the account that ran the script survives the switch) and runsprovision-vm allod-dev.Depends on the inventory hardware-file split, the forge-less bootstrap in
allod/nexus, the derived credential entries inallod/secrets, and the hypervisor groups inallod/archetypes.Found during the public install walk.
Landed on master in commit
1c64295: getting-started.sh with its README section. Verified against the files on master today; closing as completed.