27 lines
972 B
Markdown
27 lines
972 B
Markdown
# nixlab
|
|
|
|
The Nix part of my homelab, just messing around
|
|
|
|
## boostrap
|
|
TODO: Figure out if addNetworking is required still
|
|
- Set `addNetworking` to `false` in `config/tf.nix`
|
|
- `just deploy`
|
|
- Wait for the infra to build
|
|
- Start the containers and log in to them
|
|
- Redeploy infra with `addNetworking`
|
|
- Put the `host-key.pub` into `~/.ssh/authorized_keys` on each host
|
|
- (This wil fail) `just deploy`
|
|
- Fetch the SSH keys of the hosts and put them in `secrets/secrets.nix`
|
|
- Remember to add it to `systems`!
|
|
- Rekey the secrets with `just rekey`
|
|
- `just deploy`
|
|
- Wait for the deploy
|
|
- Set the IPs properly in `flake.nix` (using the TF config as a ref)
|
|
- Reboot the nodes
|
|
|
|
## ref
|
|
- https://nixos.wiki/wiki/Proxmox_Linux_Container
|
|
- https://github.com/ryantm/agenix
|
|
- https://registry.terraform.io/providers/Telmate/proxmox/latest/docs/resources/lxc
|
|
- https://terranix.org/documentation/flakes.html
|
|
- https://discourse.nixos.org/t/qbittorrent-headless-service-module/32397
|