Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

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 > && terraform init && terraform apply"

Server deletion

nix-shell --run "terraform destroy"


Passwords are managed by pass the password-store.

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

You can’t perform that action at this time.