Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
modules
README.md
config.nix
shell.nix
sshkey
sshkey.pub

README.md

NixOS Server Example

Setup containing opinionated modules to deploy NixOS servers on hcloud using nixos-infect. Provisioning uploads the nixos-infect script and applys it, after uploading additional NixOS configuraiton files.

The nginx service is configured by a template generated by terraform containing the IP addresses of the other servers. To access the domains you have to update your /etc/hosts.

How to Run

Make sure your passwordstore is setup correctly.

Server creation

nix-shell --run "terranix > config.tf.json && terraform init && terraform apply"

Server deletion

nix-shell --run "terraform destroy"

Password

Passwords are managed by pass the password-store.

You need a hcloud token which is stored under development/hetzner.com/api-token in your passwordstore. (Of course you can change that by adjusting the ./shell.nix).

You can’t perform that action at this time.