diff options
| author | Kleidi Bujari <mail@4kb.net> | 2026-02-16 13:26:58 -0800 |
|---|---|---|
| committer | Kleidi Bujari <mail@4kb.net> | 2026-02-16 13:26:58 -0800 |
| commit | bb76ba9afad18ab9b0af110545a31b4fdb4032ff (patch) | |
| tree | 29743353e5f2cd235852d4606284f1d00251fc78 | |
| parent | 347acb101ddd7f1fe653c7f0cb2a54d9a82441db (diff) | |
| download | depot-bb76ba9afad18ab9b0af110545a31b4fdb4032ff.tar.gz depot-bb76ba9afad18ab9b0af110545a31b4fdb4032ff.tar.bz2 depot-bb76ba9afad18ab9b0af110545a31b4fdb4032ff.zip | |
define emacs service rather than using environment package
| -rw-r--r-- | modules/desktop.nix | 12 |
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 |
