1
0
Fork 0
Configuration using OpenTofu and Nix
 
 
 
Go to file
Ethan Reece df8ab4016a
Create initial tf file
2025-02-21 01:49:45 -06:00
.gitignore Create initial tf file 2025-02-21 01:49:45 -06:00
README.md Create initial tf file 2025-02-21 01:49:45 -06:00
flake.lock Create flake 2025-02-20 23:49:05 -06:00
flake.nix Create initial tf file 2025-02-21 01:49:45 -06:00
main.tf Create initial tf file 2025-02-21 01:49:45 -06:00
secret.tfvars.example Create initial tf file 2025-02-21 01:49:45 -06:00

README.md

OpenTofu server configuration

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

How to use

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
  • tofu-apply