Skip to content

Commit

Permalink
age-home: Use curly-brackets for XDG_RUNTIME_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreyren committed Aug 10, 2024
1 parent 3f1dae0 commit ebeb28a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/age-home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ with lib; let
baseDir =
if isDarwin
then "$(getconf DARWIN_USER_TEMP_DIR)"
else "$XDG_RUNTIME_DIR";
else "\${XDG_RUNTIME_DIR}";
in "${baseDir}/${dir}";

userDirectoryDescription = dir:
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 {
options.age = {
Expand Down

0 comments on commit ebeb28a

Please sign in to comment.