1
0
Fork 0
Configuration using OpenTofu and Nix
 
 
 
Go to file
Ethan Reece 3ff323ccca
Change hostname
2025-02-21 23:47:06 -06:00
modules Create files from nixos-wiki-infra 2025-02-21 05:41:47 -06:00
targets Change hostname 2025-02-21 23:47:06 -06:00
terraform Change hostname 2025-02-21 23:47:06 -06:00
.env.example Create files from nixos-wiki-infra 2025-02-21 05:41:47 -06:00
.gitignore Create working Hetzner NixOS install 2025-02-21 23:16:37 -06:00
README.md Create working Hetzner NixOS install 2025-02-21 23:16:37 -06:00
flake.lock Create files from nixos-wiki-infra 2025-02-21 05:41:47 -06:00
flake.nix Create files from nixos-wiki-infra 2025-02-21 05:41:47 -06:00

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:

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.