summaryrefslogtreecommitdiff
path: root/modules/emacs.nix
blob: a6a4b22cbc69124a2c651a6fe5d1381ad85d5a37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ pkgs, inputs, lib, ... }:

{
  environment.systemPackages = with pkgs; [
    direnv
  ];

  nixpkgs.overlays = [
    inputs.emacs-overlay.overlay
  ];

  services.emacs = {
    install = true;
    enable = false;
    package = with pkgs; ((emacsPackagesFor emacsPgtk).emacsWithPackages (epkgs: with epkgs; [
      vterm
      pdf-tools
    ]));
    defaultEditor = lib.mkDefault false;
  };

}