bootstrap: implement automated VM bootstrap mechanism for Phase 3 #7
Reference in New Issue
Block a user
Delete Branch "phase3-bootstrap-mechanism"
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?
Add systemd service that automatically bootstraps freshly deployed VMs
with their host-specific NixOS configuration from the flake repository.
Changes:
hosts/template2/bootstrap.nix: New systemd oneshot service that:
hosts/template2/configuration.nix: Configure cloud-init datasource
hosts/template2/default.nix: Import bootstrap.nix module
terraform/vms.tf: Add cloud-init disk to VMs
TODO.md: Mark Phase 3 as completed
This eliminates the manual nixos-rebuild step from the deployment workflow.
VMs now automatically pull and apply their configuration on first boot.
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com