Configuration using OpenTofu and Nix
terraform | ||
.gitignore | ||
.terraform.lock.hcl | ||
flake.lock | ||
flake.nix | ||
README.md |
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 interraform
directorytofu-apply
- run interraform
directory