mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-03 07:31:03 +01:00
emacs: fix service environment
Emacs populates 'exec-path' at launch from the 'PATH' environment variable. Likewise, the emacs derivation from nixpkgs populates 'load-path' from the 'NIX_PROFILES' variable. As neither of these are available by default in the systemd user manager, revert to the previous behavior of launching the Emacs daemon from a login shell. Fixes #1354 Fixes #1340 PR #1355
This commit is contained in:
parent
8f2342e13a
commit
54b69d2ef8
7 changed files with 30 additions and 9 deletions
|
|
@ -1,5 +1,5 @@
|
|||
[Service]
|
||||
ExecStart=@emacs@/bin/emacs --fg-daemon="%t/emacs/server"
|
||||
ExecStart=@runtimeShell@ -l -c "@emacs@/bin/emacs --fg-daemon='%t/emacs/server'"
|
||||
ExecStop=@emacs@/bin/emacsclient --eval '(kill-emacs 0)'
|
||||
Restart=on-failure
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue