age-home: Use curly-brackets for XDG_RUNTIME_DIR

To avoid having to do 4fd99eae63/nixos/secrets.nix (L25C9-L29C116) while using agenix in user services.
This commit is contained in:
Jacob Hrbek 2024-08-10 05:05:53 +02:00
parent 3f1dae074a
commit e3413992fb

View file

@ -146,12 +146,12 @@ with lib; let
baseDir = baseDir =
if isDarwin if isDarwin
then "$(getconf DARWIN_USER_TEMP_DIR)" then "$(getconf DARWIN_USER_TEMP_DIR)"
else "$XDG_RUNTIME_DIR"; else "\${XDG_RUNTIME_DIR}";
in "${baseDir}/${dir}"; in "${baseDir}/${dir}";
userDirectoryDescription = dir: userDirectoryDescription = dir:
literalExpression '' literalExpression ''
"$XDG_RUNTIME_DIR"/${dir} on linux or "$(getconf DARWIN_USER_TEMP_DIR)"/${dir} on darwin. "${XDG_RUNTIME_DIR}"/${dir} on linux or "$(getconf DARWIN_USER_TEMP_DIR)"/${dir} on darwin.
''; '';
in { in {
options.age = { options.age = {