From 9ce670a6ff70445219caafb71b17191bb78f70a3 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Sat, 24 Jul 2021 01:23:37 +0300 Subject: [PATCH] Start emacs after sway --- profiles/applications/emacs/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/profiles/applications/emacs/default.nix b/profiles/applications/emacs/default.nix index 4ecc066..7e150b7 100644 --- a/profiles/applications/emacs/default.nix +++ b/profiles/applications/emacs/default.nix @@ -85,8 +85,14 @@ in { services.emacs.enable = true; - systemd.user.services.emacs.Service.Environment = - "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/balsoft/bin"; + systemd.user.services.emacs = { + Service = { + Environment = + "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/balsoft/bin"; + After = "sway-session.target"; + WantedBy = "sway-session.target"; + }; + }; xdg.configFile."emacs/init.el".source = pkgs.substituteAll ({ src = ./init.el;