summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2026-02-16 13:26:58 -0800
committerKleidi Bujari <mail@4kb.net>2026-02-16 13:26:58 -0800
commitbb76ba9afad18ab9b0af110545a31b4fdb4032ff (patch)
tree29743353e5f2cd235852d4606284f1d00251fc78 /modules
parent347acb101ddd7f1fe653c7f0cb2a54d9a82441db (diff)
downloaddepot-bb76ba9afad18ab9b0af110545a31b4fdb4032ff.tar.gz
depot-bb76ba9afad18ab9b0af110545a31b4fdb4032ff.tar.bz2
depot-bb76ba9afad18ab9b0af110545a31b4fdb4032ff.zip
define emacs service rather than using environment package
Diffstat (limited to 'modules')
-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