3 ms·
Could try Nix with Agenix. Modularized and composable, and secrets can be stored encrypted in git.
by colordrops 4y ago
Could try Nix with Agenix. Modularized and composable, and secrets can be stored encrypted in git.
- xrd 4y agoThis sounds interesting. Do you have a good write-up?
- colordrops 4y agoI don't have a write-up, just my code in git. But it's not public. I'm not using anything out of the ordinary - Nix containers, modules, and functions, and the Agenix module with uses a private key to decrypt secrets at start. The Nix language is inherently composable. If you are familiar with Nix, it should be straightforward, otherwise it would probably be better to learn it first. Perhaps you could use this as a mechanism to learn. Here are some links that explain: Containers: https://nixos.wiki/wiki/NixOS_Containers https://nixos.wiki/wiki/NixOS_Containers Modules: https://nixos.wiki/wiki/NixOS_modules https://nixos.wiki/wiki/NixOS_modules Functions: https://www.reddit.com/r/NixOS/comments/zzstun/please_help_me_defining_multiple_mostly_similar/ https://www.reddit.com/r/NixOS/comments/zzstun/please_help_m... Agenix: https://github.com/ryantm/agenix https://github.com/ryantm/agenix
- xrd 4y agoThanks, this is very helpful. At first glance, this looks a bit more complicated to me than docker compose. Using nix feels like it could make things more precise, and maybe that is better? I'm still learning Nix, despite having it has my main laptop driver for over a year. It's magical and mystifying all at once!
- colordrops 4y agoOh, it's vastly more powerful than docker compose. You can completely configure everything on your machine declaratively and reproducibly.
- yewenjie 4y agoThere is also https://github.com/hercules-ci/arion https://github.com/hercules-ci/arion - run docker-compose with help from Nix/NixOS