summaryrefslogtreecommitdiff
path: root/modules/emacs.nix
diff options
context:
space:
mode:
authorGrisha Shipunov2025-04-01 00:54:23 +0200
committerGrisha Shipunov2025-04-01 00:54:23 +0200
commit1e29764aeef99802536d5b1d7a0d58fa1486b221 (patch)
tree732eee24c5aafc3d7896aba31137d61f8657bf33 /modules/emacs.nix
parent10c4152f5436a92020869aa272dcf4d5339aac99 (diff)
emacs
Diffstat (limited to 'modules/emacs.nix')
-rw-r--r--modules/emacs.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/emacs.nix b/modules/emacs.nix
new file mode 100644
index 0000000..705bebd
--- /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;
+ };
+
+}