summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/desktop.nix12
1 files changed, 7 insertions, 5 deletions
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