Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/arcnmx/tf-nix
- Owner: arcnmx
- Created: 2020-01-03T21:51:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-18T15:58:23.000Z (10 months ago)
- Last Synced: 2024-02-17T15:34:50.204Z (9 months ago)
- Language: Nix
- Size: 190 KB
- Stars: 21
- Watchers: 5
- Forks: 1
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
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)