1
0
Fork 0
Configuration using OpenTofu and Nix
Find a file
2025-02-21 02:27:04 -06:00
terraform Reorganize file structure 2025-02-21 02:27:04 -06:00
.gitignore Reorganize file structure 2025-02-21 02:27:04 -06:00
.terraform.lock.hcl Reorganize file structure 2025-02-21 02:27:04 -06:00
flake.lock Reorganize file structure 2025-02-21 02:27:04 -06:00
flake.nix Reorganize file structure 2025-02-21 02:27:04 -06:00
README.md Reorganize file structure 2025-02-21 02:27:04 -06:00

OpenTofu server configuration

This is an experimental configuration for my Hetzner VPS using OpenTofu and Nix.

How to use

In the terraform directory, copy secret.tfvars.example to secret.tfvars and fill in the values.

To generate a token with Hetzner, go to the project and click Security -> API Tokens.

Run nix develop to access a shell where OpenTofu is accessible.

Aliases

The following aliases in the development shell include the secrets file automatically.

  • tofu-plan - run in terraform directory
  • tofu-apply - run in terraform directory