From bb76ba9afad18ab9b0af110545a31b4fdb4032ff Mon Sep 17 00:00:00 2001 From: Kleidi Bujari Date: Mon, 16 Feb 2026 13:26:58 -0800 Subject: define emacs service rather than using environment package --- modules/desktop.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/desktop.nix b/modules/desktop.nix index 4d704ae..8077380 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -31,11 +31,6 @@ in hunspell hunspellDicts.en-us - - ((emacsPackagesFor emacs-pgtk).emacsWithPackages (epkgs: [ - epkgs.mu4e - epkgs.treesit-grammars.with-all-grammars - ])) ]; documentation = { @@ -52,6 +47,13 @@ in alsa.enable = true; }; + services.emacs = { + enable = true; + defaultEditor = true; + package = with pkgs; (emacsPackagesFor emacs).emacsWithPackages + (epkgs: [ epkgs.mu4e epkgs.treesit-grammars.with-all-grammars ]); + }; + # Build nix derivations on disk rather than in /tmp which is mounted # in RAM, otherwise large closures fail to build due to lack of # space. Since desktops are used as dev machines, this option lives -- cgit v1.3.1