1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

emacs: add proFileDirectory to daemon PATH

This commit is contained in:
klchen0112 2024-12-07 20:48:30 +08:00
parent a9953635d7
commit f6a2907bf2
2 changed files with 7 additions and 1 deletions

View file

@ -221,8 +221,10 @@ in {
launchd.agents.emacs = {
enable = true;
config = {
ProgramArguments = [ "${cfg.package}/bin/emacs" "--fg-daemon" ]
ProgramArguments = [ "${emacsBinPath}/emacs" "--fg-daemon" ]
++ cfg.extraOptions;
EnvironmentVariables.PATH =
"${config.home.profileDirectory}/bin:/usr/bin:/bin:/usr/sbin:/sbin";
RunAtLoad = true;
KeepAlive = {
Crashed = true;

View file

@ -3,6 +3,10 @@
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>PATH</key>
<string>/home/hm-user/.nix-profile/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>
<dict>
<key>Crashed</key>
<true/>