nix-config/modules/emacs.nix
2025-04-01 00:54:23 +02:00

29 lines
570 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 (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;
};
}