-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use during evaluation? #159
Comments
No. That's not possible. It would basically involve import-from-derivation and adding secret keys to the nix store at which point you can just have plain text secrets. You maybe want to have a look into https://github.com/vlaci/git-agecrypt or similar if you have this usecase (or wait until nix gets native encryption ....). |
So how would git-agecrypt provide the secret to nix at build time? Is that NixOS/nix#5260 ? |
Mhm. Right. This won't work with flakes. One could have a flake for secrets in a private repo in plain text. I don't know any other solution. |
Would there be a way to encrypt a file that gets decrypted during nix evaluation? The idea would be to store semi-secrets that change the nix configuration like the contents of /etc/hosts - I'd like to keep that out of git but it's fine in the nix store.
The text was updated successfully, but these errors were encountered: