~ruther/nixos-config

ref: 44dbf6028a640d4714ee00d2c583930660d62b99 nixos-config/modules/editors/emacs/home.nix -rw-r--r-- 746 bytes
44dbf602 — Rutherther fix: fix issues 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#
# Personal Emacs config. Can be set up with vanilla nixos or with home-manager (see comments at bottom)
#
# flake.nix
#   ├─ ./hosts
#   │   └─ configuration.nix
#   └─ ./modules
#       └─ ./editors
#           └─ ./emacs
#               └─ default.nix *
#


{ config, user, unstable, pkgs, doom-emacs, location, ... }:

let
  emacs-with-packages = ((pkgs.emacsPackagesFor pkgs.emacs29).emacsWithPackages (epkgs: [
      epkgs.vterm
      epkgs.sqlite
      epkgs.treesit-grammars.with-all-grammars
    ]));
in {
  services.emacs = {
    enable = true;
    package = emacs-with-packages;
  };

  programs.doom-emacs = {
    enable = true;
    doomPrivateDir = ./doom.d;
    emacsPackage = emacs-with-packages;
  };
}
Do not follow this link