You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which would let me either construct the YAML from Nix, or symlink the file to the correct location. Except that it doesn’t work to symlink it like that (“access to absolute path '…' is forbidden in pure eval mode”).
Another approach is to expose the config file path as a read-only option and do
Is there some other approach that I’m missing that allows me to pass the agenix path value to the module, and wind up with the decrypted file symlinked to the correct location?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I’m surprised this is the first time I’ve run into this situation and am wondering what the best way to deal with it is.
I have a dotfile containing some secrets, so my home.nix has
However, I’ve now created a HM module for someApp, and want to encapsulate the slightly-complicated logic for where the config file lives.
My first thought was to be able to do
with a module like
which would let me either construct the YAML from Nix, or symlink the file to the correct location. Except that it doesn’t work to symlink it like that (“access to absolute path '…' is forbidden in pure eval mode”).
Another approach is to expose the config file path as a read-only option and do
but that feels backward to me.
Is there some other approach that I’m missing that allows me to pass the agenix
path
value to the module, and wind up with the decrypted file symlinked to the correct location?Beta Was this translation helpful? Give feedback.
All reactions