blob: 39c2db8726a89fdb2b0e353c3f137b4ab7103fb3 (
plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{
pkgs,
lib,
...
}:
{
environment.systemPackages =
let
# https://wiki.nixos.org/wiki/TexLive
# minimal set of latex packages for orgmode
# emacs config:
# (setq org-latex-complier "lualatex")
# (setq org-preview-latex-default-process 'dvisvgm)
orgmode-tex = (
pkgs.texlive.combine {
inherit (pkgs.texlive)
scheme-basic
dvisvgm
dvipng
wrapfig
amsmath
ulem
hyperref
capt-of
;
}
);
in
with pkgs;
[
mu
orgmode-tex
];
services.emacs = {
install = true;
enable = true;
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
mu4e
]
)
);
defaultEditor = lib.mkForce true;
};
}
|