commit cade89c189993b699cad4443b97c695cd9e91102 parent 21efa79678bb0fa7a69c89a5c24f437e17f96002 Author: Vincent Demeester <vincent@sbr.pm> Date: Fri, 2 Oct 2020 17:31:14 +0200 tools/emacs: fix emacs-server system service… … under nixos. Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tasks.org | | | 10 | ++++++++++ |
M | users/modules/services/emacs-server.nix | | | 4 | ++-- |
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/tasks.org b/tasks.org @@ -42,6 +42,16 @@ Using =mr= for this +** DONE Fix emacs server service +CLOSED: [2020-10-02 Fri 17:31] +:LOGBOOK: +- State "DONE" from "TODO" [2020-10-02 Fri 17:31] +:END: + +** TODO Manage =~/sync/*= links + +kubeconfig, … + ** DONE Add gnome3 extensions CLOSED: [2020-10-02 Fri 12:05] :LOGBOOK: diff --git a/users/modules/services/emacs-server.nix b/users/modules/services/emacs-server.nix @@ -44,8 +44,8 @@ in Service = { ExecStart = - "${cfg.shell} 'exec emacs --fg-daemon=${cfg.name} ${cfg.extraOptions}'"; - ExecStop = "emacsclient --eval '(kill-emacs)'"; + "${cfg.shell} 'exec ${cfg.package}/bin/emacs --fg-daemon=${cfg.name} ${cfg.extraOptions}'"; + ExecStop = "${cfg.package}/bin/emacsclient --eval '(kill-emacs)'"; Restart = "on-failure"; };