blob: 829c2c6142ea1cca19604b645b249a731777b9a6 (
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
|
{ pkgs, ... }:
let
pkgsForEmacs = with pkgs; [
tree-sitter
gcc
cmake
gnumake
];
pkgsUsePackage = with pkgs; [
(pkgs.emacsWithPackagesFromUsePackage {
inherit (service) package;
config = ./init.el;
alwaysEnsure = true;
extraEmacsPackages = epkgs: [
epkgs.use-package
];
})
];
in
{
home.packages = pkgsForEmacs ++ pkgsUsePackage;
xdg.configFile = {
"emacs/init.el".text = builtins.readFile ./init.el;
"emacs/early-init.el".text = builtins.readFile ./early-init.el;
};
}
|