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:
parent
8f2342e13a
commit
54b69d2ef8
7 changed files with 30 additions and 9 deletions
|
|
@ -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}
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue