wip colmena hive
readme.md

Butterdog Hive #

Using nixos-anywhere and disko for initial provisioning, and colmena for deployments.

Adding a new node #

  1. Ensure you have ssh access to the vm. Run the following on the vm:
sudo su
curl https://git.ollie.earth/ollie.keys -o /root/.ssh/authorized_keys
  1. Copy the template
cp hosts/template -r hosts/<your-vm>
  1. Configure your services (under ./hosts/<your-vm>/services/)

  2. Add your new vm to the known hosts in flake.nix like this:

normal_hosts =  {
    your-vm = {
        target = "ip-of-your-vm";
    };
};
  1. Infect the new host with your configuration.
just infect root@ip-of-your-vm your-vm
  1. Set up sops for the vm (if needed) Run the following to get the age key
just sops-key ip-of-your-vm

and add it to .sops.yaml. Then update the appropriate secrets files.

sops updatekeys ./secrets/services/<your-secret>.yaml
  1. Build the configuration remotely (optional)
just prepare-deploy
  1. Deploy the configuration
just deploy

dog with the butter

References #