1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00
home-manager/modules/misc
Tad Fisher 3815248786
emacs: Support socket activation via systemd
Add 'services.emacs.socketActivation.enable' for generating an
'emacs.socket' systemd unit.

Emacs since version 26 has supported socket activation, whereby an
external process manager such as systemd listens on a socket and passes
it to the Emacs daemon when the manager launches it. This improves
startup time of the user session and avoids launching the daemon when not
needed, for example when launching the user session via SSH.

This implementation hard-codes the socket path to the default for the
version of 'programs.emacs.finalPackage', because systemd does not
perform shell expansion in the socket unit's 'ListenStream' parameter
and it seems like an advanced use-case to change the socket path. Shell
expansion would be desirable as the socket path usually resides in
directories such as $XDG_RUNTIME_DIR or $TMPDIR.

Tests were added to verify behavior in the following cases:

- Emacs service with socket activation disabled
- Emacs 26 with socket activation enabled
- Emacs 27 with socket activation enabled

PR #1314
2020-06-11 20:39:49 +02:00
..
dconf.nix dunst: replace deprecated package name 2020-06-06 14:53:15 +02:00
debug.nix debug: add module 2020-03-07 15:03:44 +01:00
fontconfig.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
gtk.nix gtk: apply nixfmt 2020-05-25 00:46:58 +02:00
lib.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
news.nix emacs: Support socket activation via systemd 2020-06-11 20:39:49 +02:00
nixpkgs.nix nixpkgs: add indirection to _module.args.pkgs 2020-01-26 13:03:23 +01:00
numlock.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
pam.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
qt.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
submodule-support.nix doc: surround name? with fancier characters 2019-09-01 21:28:40 +02:00
tmpfiles.nix tmpfiles: add module 2020-05-16 13:32:33 +02:00
version.nix Update documentation for release 20.03 2020-04-23 00:29:11 +02:00
xdg-mime-apps.nix xdg.mimeApps: use xdg.dataFile instead of home.file 2020-05-09 23:53:48 +02:00
xdg-mime.nix xdg-mime: fix issue on WSL1 2020-06-04 19:45:22 +02:00
xdg-user-dirs.nix xdg-user-dirs: add user-dirs.conf 2020-04-22 00:52:39 +02:00
xdg.nix Deprecate use of builtins.getEnv 2020-05-26 00:28:59 +02:00