diff --git a/modules/emacs.nix b/modules/emacs.nix index 705bebd..240bd20 100644 --- a/modules/emacs.nix +++ b/modules/emacs.nix @@ -1,29 +1,35 @@ -{ pkgs, inputs, lib, ... }: +{ + pkgs, + 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 - ])); + package = + with pkgs; + ( + (emacsPackagesFor ( + emacs-pgtk.overrideAttrs (old: { + passthru = old.passthru // { + treeSitter = true; + }; + }) + )).emacsWithPackages + ( + epkgs: with epkgs; [ + treesit-grammars.with-all-grammars + vterm + pdf-tools + ] + ) + ); defaultEditor = lib.mkDefault true; }; - }