This commit is contained in:
Grisha Shipunov 2025-04-01 00:54:23 +02:00
parent 10c4152f54
commit 1e29764aee
5 changed files with 38 additions and 8 deletions

29
modules/emacs.nix Normal file
View file

@ -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;
};
}