nixos-config/terranix/jitsi-cloud
2020-12-30 01:18:37 +01:00
..
plops rc3: experiments 2020-12-30 01:18:37 +01:00
.gitignore rc3: experiments 2020-12-30 01:18:37 +01:00
config.nix rc3: experiments 2020-12-30 01:18:37 +01:00
README.md rc3: experiments 2020-12-30 01:18:37 +01:00
shell.nix rc3: experiments 2020-12-30 01:18:37 +01:00

NixOS Server Example with plops

This setup shows:

  • how to use a terranix module
  • how to use 3rd party provision software after terraform.
  • how to run terranix and terraform

Setup containing opinionated modules to deploy NixOS servers on hcloud using nixos-infect with my plops provisioning tool for NixOS, which is an overlay on krops.

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

What you need

Steps

  • example-prepare: to create ssh keys.
  • example-ssh: to run terranix and terraform do create server.
  • example-cleanup: to delete server, ssh keys and terraform data. (don't forget that step, or else it gets costly)