blob: 62b06ce3670eeea74781bfbced4cdcbdc3cc4300 (
plain) (
blame)
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
|
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
((emacsPackagesFor emacsPgtk).emacsWithPackages (epkgs: with epkgs; [
adoc-mode
cmake-mode
csharp-mode
direnv
dockerfile-mode
eglot
elpher
gnuplot-mode
go-mode
groovy-mode
haskell-mode
jam-mode
magit
markdown-mode
meson-mode
monokai-theme
nix-mode
rainbow-delimiters
rust-mode
toml-mode
vala-mode
zig-mode
]))
];
systemd.tmpfiles.rules = [
"d ${config.users.users.qyliss.home}/state/emacs 0700 qyliss qyliss"
];
users.users.qyliss.xdg.config.paths."emacs" = with pkgs;
runCommandNoCC ".emacs.d" {
nativeBuildInputs = [ emacsPgtk ];
} ''
cp ${./early-init.el} early-init.el
cp ${./init.el} init.el
emacs -L . --batch -f batch-byte-compile *.el
install -d $out
install *.el *.elc $out
'';
}
|