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
In the Home Manager module, age.secretsDir doesn’t default to a path, but a shell expression that expands to a path. This means that config.age.secrets.<name>.path often can’t be referenced the way it is in the passwordFile example from the age.secrets.<name>.path docs.
which is invalid, as the INI file wants a path, and doesn’t do shell expansion.
My workaround has been to set age.secretsDir to an actual path1, rather than a shell expression, but I get why it’s done the way it is. It would be very useful for age.secrets.<name>.path to be a path, though.
Footnotes
Taking what Home Manager already does with home.homeDirectory, I have added an xdg.runtimeDir option that has to be explicitly set, and then I ensure it matches the actual XDG_RUNTIME_DIR or DARWIN_USER_TEMP_DIR. So age.secretsDir = "${config.xdg.runtimeDir}/agenix does it for me. ↩
The text was updated successfully, but these errors were encountered:
In the Home Manager module,
age.secretsDir
doesn’t default to a path, but a shell expression that expands to a path. This means thatconfig.age.secrets.<name>.path
often can’t be referenced the way it is in thepasswordFile
example from theage.secrets.<name>.path
docs.E.g., I have a config like
and the generated ~/.foo.cfg looks like
which is invalid, as the INI file wants a path, and doesn’t do shell expansion.
My workaround has been to set
age.secretsDir
to an actual path1, rather than a shell expression, but I get why it’s done the way it is. It would be very useful forage.secrets.<name>.path
to be a path, though.Footnotes
Taking what Home Manager already does with
home.homeDirectory
, I have added anxdg.runtimeDir
option that has to be explicitly set, and then I ensure it matches the actualXDG_RUNTIME_DIR
orDARWIN_USER_TEMP_DIR
. Soage.secretsDir = "${config.xdg.runtimeDir}/agenix
does it for me. ↩The text was updated successfully, but these errors were encountered: