What is agenix?
mainagenix is a Nix library designed for securely managing and deploying secrets in NixOS using age encryption and existing SSH key infrastructure. It consists of two main components:
- agenix CLI: A command-line application used to encrypt secrets into
.agefiles. These encrypted files can be safely stored in the Nix store. - agenix NixOS Module: A module that integrates with NixOS to:
- Add encrypted
.agefiles to the Nix store. - Automatically decrypt secrets on target machines using the local private SSH keys.
- Automatically mount decrypted secrets at a predictable path, typically
/run/agenix/....
- Add encrypted