From e3413992fbc77176f5827949fd3d645288db1223 Mon Sep 17 00:00:00 2001 From: Jacob Hrbek Date: Sat, 10 Aug 2024 05:05:53 +0200 Subject: [PATCH] age-home: Use curly-brackets for XDG_RUNTIME_DIR To avoid having to do https://github.com/colonelpanic8/dotfiles/blob/4fd99eae63ef0ea8e6f23ac5e152352cb0fc1bf0/nixos/secrets.nix#L25C9-L29C116 while using agenix in user services. --- modules/age-home.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/age-home.nix b/modules/age-home.nix index 7c1051f..c8135b2 100644 --- a/modules/age-home.nix +++ b/modules/age-home.nix @@ -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 = {