summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGrisha Shipunov2025-04-01 11:56:56 +0200
committerGrisha Shipunov2025-04-01 11:56:56 +0200
commiteb4c98a5c848fd1759a0b36a7891ff6f229ab40d (patch)
treee12c86dc4f060750fc74220c466fc59ff8a5d66e /modules
parent1e29764aeef99802536d5b1d7a0d58fa1486b221 (diff)
cleanup and reformat
Diffstat (limited to 'modules')
-rw-r--r--modules/emacs.nix40
1 files changed, 23 insertions, 17 deletions
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;
};
-
}