NixOS Server Example with plops
After server creation, the initial provisioning uploads the nixos-infect script and applys it. After server creation and initialization terranix/terraform generates files used for the "real" provisioning done by plops.
Of course instead of plops you can use every provsioning tool you like here (e.g. NixOps, Ansible, ... )
How to Run
Make sure your passwordstore is setup correctly.
nix-shell --run "terranix > config.tf.json && terraform init && terraform apply"
This will recompile git, because we overwrite openssh, to use the local ssh key.
cd plops nix-shell --run "deploy-server1"
nix-shell --run "terraform destroy"
Passwords are managed by pass the password-store.
You need a
which is stored under
in your passwordstore.
(Of course you can change that by adjusting the