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 feb88bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/age-home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ in {
};

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

0 comments on commit feb88bd

Please sign in to comment.