Skip to content

Commit

Permalink
fix: set XDG_RUNTIME_DIR in hm activation script
Browse files Browse the repository at this point in the history
  • Loading branch information
elliott-farrall committed Jan 26, 2025
1 parent 3478f03 commit 419687c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/age-home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,11 @@ in {
};

home.activation.agenix = lib.mkIf pkgs.stdenv.hostPlatform.isLinux (
lib.hm.dag.entryAfter ["linkGeneration"] mountingScript
lib.hm.dag.entryAfter ["linkGeneration"] ''
env XDG_RUNTIME_DIR=''${XDG_RUNTIME_DIR:-/run/user/$(id -u)}
echo $XDG_RUNTIME_DIR
${mountingScript}
''
);
};
}

0 comments on commit 419687c

Please sign in to comment.