1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-14 21:11:08 +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

@ -27,7 +27,12 @@ with lib;
assertFileContent home-files/.config/systemd/user/emacs.socket \
${./emacs-socket-26-emacs.socket}
assertFileContent home-files/.config/systemd/user/emacs.service \
${./emacs-socket-26-emacs.service}
${
pkgs.substituteAll {
inherit (pkgs) runtimeShell;
src = ./emacs-socket-26-emacs.service;
}
}
assertFileContent home-path/share/applications/emacsclient.desktop \
${./emacs-emacsclient.desktop}
'';