|
||
---|---|---|
modules | ||
targets | ||
terraform | ||
.env.example | ||
.gitignore | ||
README.md | ||
flake.lock | ||
flake.nix |
README.md
OpenTofu server configuration
This is an experimental configuration for my Hetzner VPS using OpenTofu and Nix, based on NixOS/nixos-wiki-infra on Github.
How to use
Copy .env.example
to .env
and fill in the values.
To generate a token with Hetzner, go to the project and click Security -> API Tokens
.
For cross-compiling, you will need to add a builder by visiting the following resources:
- https://nix.dev/tutorials/nixos/distributed-builds-setup.html
- https://nix.dev/manual/nix/2.25/advanced-topics/distributed-builds
Run nix develop
at the root of the project directory to access a shell where OpenTofu is accessible.
In the targets
directory, go to the system and run the corresponding shell files to make modifications.