diff --git a/BOOTSTRAP.md b/BOOTSTRAP.md index 08e9e51..13bfce2 100644 --- a/BOOTSTRAP.md +++ b/BOOTSTRAP.md @@ -26,6 +26,16 @@ If your Proxmox host or your Control Center has a different name: - Update the `node_name` inside your OpenTofu `main.tf`. - Update `nixos/flake.nix` to reflect your new host names. +### The Golden Image +Because the GitOps Control Center must be spun up fully configured without human intervention, you need a pre-built NixOS `.qcow2` image. +1. Build the golden image locally (requires Nix/WSL): + ```bash + nix run github:nix-community/nixos-generators -- --flake ./nixos#izanagi --format qcow + ``` +2. Upload the resulting `.qcow2` file to your Proxmox node. +3. Create a new VM in Proxmox with **ID 9000**. +4. Import the `.qcow2` as its disk and convert the VM into a **Template**. *(Ensure the template has Cloud-Init configured).* + ## Execute the Bootstrap Once you have pushed your adapted codebase to your Git server, SSH into your fresh Proxmox node as `root` and run the bootstrap script: diff --git a/nixos/hosts/izanagi/default.nix b/nixos/hosts/izanagi/default.nix index 5403c50..1d7e09c 100644 --- a/nixos/hosts/izanagi/default.nix +++ b/nixos/hosts/izanagi/default.nix @@ -8,10 +8,10 @@ virtualisation.guest.enable = true; # Enable standard GitOps for the Control Center itself - common.gitops.enable = true; + gitops.enable = true; # We might pull from our Forgejo instance eventually, but for bootstrap # it might need to pull from Github or the local Gitea if it's up. - # common.gitops.repoUrl = "https://git.depeuter.dev/Bos55/nix-config.git"; + # gitops.repoUrl = "https://git.depeuter.dev/Bos55/nix-config.git"; services = { openssh.enable = true;