No description
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| .iwe | ||
| common | ||
| hosts | ||
| kubernetes | ||
| notes | ||
| secrets | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| harmonia.pub | ||
| justfile | ||
| known_hosts.nix | ||
| README.md | ||
| renovate.json | ||
| ryuko-nix.png | ||
| statix.toml | ||
| topology.graph | ||
Ryuko Nix Hive
This flake describes all NixOS hosts deployed on ryuko.
Hosts
./hosts/caddy/: Our reverse proxy handling incoming HTTP requests.grafana/: Our grafana host and prometheus scraper.dns1/: Our primary authorative DNS server handling theip.ryuko.suizid.jetztzone.dns2/,dns3: Secondary DNS servers todns1/.psql1/: Our PostgreSQL DB server.vaultwarden/: A vaultwarden instance.
Bootstrapping a new VM
- Create VM
- Make sure to enable discard for all drives and to select the
vmbr1network in order to get a DHCP lease from our OPNsense router.
- Go to the console tab and set a password for the root user
TODO: Build custom NixOS installer ISO with SSH keys configured
- From your terminal run
nixos-anywhere --flake .#<YOUR OUTPUT> root@<DHCP LEASE> --generate-hardware-config nixos-generate-config ./hosts/<YOUR HOST>/hardware-configuration.nix --phases disko,install
- Reboot VM
- Add VM to colmena hive output
- Add VM's systemc ssh ed25519 key to
secrets/secrets.nix
Pre-commit hooks
This repository utilizes pre-commit hooks. To install them just run nix develop.
