1
0
Fork 0
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:
Tad Fisher 2020-06-23 17:17:33 -07:00 committed by Robert Helgesson
parent 8f2342e13a
commit 54b69d2ef8
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
7 changed files with 30 additions and 9 deletions

View file

@ -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