diff options
Diffstat (limited to 'modules/emacs.nix')
| -rw-r--r-- | modules/emacs.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/emacs.nix b/modules/emacs.nix new file mode 100644 index 0000000..74113dd --- /dev/null +++ b/modules/emacs.nix @@ -0,0 +1,29 @@ +{ pkgs, inputs, lib, ... }: + +{ + environment.systemPackages = with pkgs; [ + direnv + ]; + + nixpkgs.overlays = [ + inputs.emacs-overlay.overlay + ]; + + services.emacs = { + install = true; + enable = false; + package = with pkgs; ((emacsPackagesFor (emacs-pgtk.overrideAttrs (old: { + passthru = old.passthru // { + treeSitter = true; + }; + }))).emacsWithPackages (epkgs: with epkgs; [ + # treesitter bits + treesit-grammars.with-all-grammars + + vterm + pdf-tools + ])); + defaultEditor = lib.mkDefault true; + }; + +} |
