This repository has been archived by the owner on Aug 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.nix
91 lines (90 loc) · 2.05 KB
/
config.nix
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{ config, lib, pkgs, ... }:
with lib;
let emacsWithPackages = {
package ? pkgs.emacs,
override ? (epkgs: epkgs),
extraPackages ? epkgs: [],
}:
let emacsPackages = pkgs.emacsPackagesGen package;
in emacsPackages.emacsWithPackages (epkgs:
extraPackages (override epkgs)
);
in {
options.emacsPackage = mkOption {
type = types.package;
description = "Emacs package to use";
};
config.emacsPackage = emacsWithPackages {
package = pkgs.emacsPgtkGcc;
override = epkgs: epkgs // {
melpaPackages = epkgs.melpaPackages // {
direnv = epkgs.melpaPackages.direnv.overrideAttrs(oldAttrs: {
version = "20201207";
recipe = pkgs.writeText "recipe" ''
(direnv
:fetcher github
:repo "wbolster/emacs-direnv")
'';
src = pkgs.fetchFromGitHub {
owner = "wbolster";
repo = "emacs-direnv";
rev = "57c86e46abbe57a2d36c8b4672dad55d4081ca74";
sha256 = "sha256-lLvG6uFCU5uNTTfG4G3r8rl3ne06ndd2/sreAS0nelw=";
fetchSubmodules = true;
};
});
};
};
extraPackages = epkgs:
(with epkgs.melpaPackages; [
ace-window
avy
consult
consult-lsp
direnv
embark
embark-consult
eshell-toggle
flycheck
flycheck-pkg-config
flycheck-rust
flyspell-correct
gnuplot
google-c-style
graphviz-dot-mode
haskell-mode
lsp-mode
lsp-ui
marginalia
markdown-mode
multitran
nix-mode
notmuch
orderless
org-gcal
org-ref
pdf-tools
powerline
quelpa
quelpa-use-package
rainbow-delimiters
reverse-im
rustic
selectrum
smartparens
epkgs.tree-sitter
epkgs.tree-sitter-langs
epkgs.telega
use-package
visual-fill-column
vterm
wakatime-mode
which-key
yasnippet
yasnippet-snippets
]) ++
(with epkgs.elpaPackages; [
org
]);
};
}