Replies: 4 comments 5 replies
-
I'm not sure if there is a solution to this. The way you attempt to work around this won't be possible. The target application needs a way to read your secrets at runtime from Maybe the best approach is to teach that application ( The way secrets are only decrypted at runtime is via a |
Beta Was this translation helpful? Give feedback.
-
I ran into this myself and I've been too lazy to actually fix it and setup spotifyd. As @blaggacao mentioned the secrets have to be read on runtime with agenix. But luckily this is solveable with agenix and spotifyd. If you look at spotifyd's configuration options theres a To clarify, the reason This does raise one concern of that fact that your agenix secret for spotify is set in your |
Beta Was this translation helpful? Give feedback.
-
I've been wanting to put together an HM module for agenix as well, but I've been backlogged 😢 |
Beta Was this translation helpful? Give feedback.
-
Please use agenix. |
Beta Was this translation helpful? Give feedback.
-
I'm pretty sure I misunderstand how this is supposed to be used. It's probably better to just post what I tried first:
This gave me the error:
My question is pretty similar to this one:
ryantm/agenix#29
There it seems the conclusion is to just use a file outside of your devos repo? That's not really the type of solution I'm looking for 😄
Revisiting the original thread about agenix I'm led to a solution which seems like it would do what I want in Encrypted Secrets with NixOS.
Note however, I cannot find how to actually use the secret there or I'm missing something.
EDIT: Ah, I think I understand that module from the block post now. In this example:
I think from your nix code you would just do a
readFile /var/lib/example/.env
?Beta Was this translation helpful? Give feedback.
All reactions