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:
parent
a9953635d7
commit
f6a2907bf2
2 changed files with 7 additions and 1 deletions
|
@ -221,8 +221,10 @@ in {
|
||||||
launchd.agents.emacs = {
|
launchd.agents.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
ProgramArguments = [ "${cfg.package}/bin/emacs" "--fg-daemon" ]
|
ProgramArguments = [ "${emacsBinPath}/emacs" "--fg-daemon" ]
|
||||||
++ cfg.extraOptions;
|
++ cfg.extraOptions;
|
||||||
|
EnvironmentVariables.PATH =
|
||||||
|
"${config.home.profileDirectory}/bin:/usr/bin:/bin:/usr/sbin:/sbin";
|
||||||
RunAtLoad = true;
|
RunAtLoad = true;
|
||||||
KeepAlive = {
|
KeepAlive = {
|
||||||
Crashed = true;
|
Crashed = true;
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>KeepAlive</key>
|
<key>KeepAlive</key>
|
||||||
|
<dict>
|
||||||
|
<key>PATH</key>
|
||||||
|
<string>/home/hm-user/.nix-profile/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
|
||||||
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>Crashed</key>
|
<key>Crashed</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
|
Loading…
Reference in a new issue