Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arcnmx/tf-nix

terraform meets nix
https://github.com/arcnmx/tf-nix

Last synced: 18 days ago
JSON representation

terraform meets nix

Awesome Lists containing this project

README

        

# tf-nix

[Terraform](https://www.terraform.io) and [Nix{,OS}](https://nixos.org/) all mashed together.

## Features and Goals

- [ ] Health checks and maintenance commands
- [x] NixOS deployment
- [x] Secret and key deployment
- [x] Pure nix configuration

## Example

Try out the [example](./example/example.nix):

```bash
export TF_VAR_do_token=XXX
nix run -f. run.apply --arg config ./example/digitalocean.nix
# or with flakes: nix run --impure github:arcnmx/tf-nix#example.digitalocean.run.apply

# Now log into the server that was just deployed:
nix run -f. run.system-ssh --arg config ./example/digitalocean.nix

# To undo the above:
nix shell -f run.terraform --arg config ./example/digitalocean.nix -c terraform destroy
```

## See Also

- [terranix](https://github.com/mrVanDalo/terranix)
- [terraform-nixos](https://github.com/tweag/terraform-nixos)
- [NixOps](https://nixos.org/nixops/)
- [NixOSes](https://github.com/Infinisil/nixoses)