nix-config/modules/emacs.nix
2023-05-30 00:49:42 +02:00

29 lines
564 B
Nix

{ pkgs, inputs, lib, ... }:
{
environment.systemPackages = with pkgs; [
direnv
];
nixpkgs.overlays = [
inputs.emacs-overlay.overlay
];
services.emacs = {
install = true;
enable = false;
package = with pkgs; ((emacsPackagesFor (emacsPgtk.overrideAttrs (old: {
passthru = old.passthru // {
treeSitter = true;
};
}))).emacsWithPackages (epkgs: with epkgs; [
# treesitter bits
treesit-grammars.with-all-grammars
vterm
pdf-tools
]));
defaultEditor = lib.mkDefault false;
};
}