flocon/infra
2026-02-10 01:29:06 +01:00
..
.gitignore create tf infra for crocus and dns 2025-02-06 11:00:37 +01:00
.terraform.lock.hcl migrate infra to terranix 2026-01-19 22:38:28 +01:00
base.nix migrate infra to terranix 2026-01-19 22:38:28 +01:00
dns.nix migrate infra to terranix 2026-01-19 22:38:28 +01:00
flake-module.nix migrate infra to terranix 2026-01-19 22:38:28 +01:00
lib.nix infra: fix migadu generator 2026-01-31 14:30:05 +01:00
mail.nix migrate infra to terranix 2026-01-19 22:38:28 +01:00
outputs.json infra: add flake module and crocus exports 2025-11-24 17:12:29 +01:00
radicle.nix migrate infra to terranix 2026-01-19 22:38:28 +01:00
README.md infra: add short deployment doc 2026-02-10 01:29:06 +01:00
web.nix add forgejo 2026-01-31 14:31:15 +01:00

Infra

Secrets

Provide secrets when asked by the command-line, or save them in a terraform.tfvars file:

gandi_token = XXX
hcloud_token = YYY

Deploying

Apply configuration from the repository root with nix run .#infra.apply (runs tofu apply). There is also nix run .#infra.plan for tofu plan, etc.

Importing

To import already existent resources, use the import command:

tofu import hcloud_server.crocus_server XXX
tofu import hcloud_firewall.hcloud_firewall YYY

For Hetzner Cloud, the resource IDs can be found in the URL of the admin console.

Outputs

The nix configuration reads some values from the outputs.json file. When modifying these, the file should be regenerated with tofu output -json > outputs.json.