-
Notifications
You must be signed in to change notification settings - Fork 1
/
nixmacsConf.nix
134 lines (126 loc) · 3.41 KB
/
nixmacsConf.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
config,
lib,
epkgs,
pkgs,
...
}: let
catt-mode = epkgs.callPackage ./pkgs/catt/catt-mode.nix {};
org-agda-export = epkgs.callPackage ./pkgs/org/ox-agda-html.nix {};
in {
layers = {
agda.enable = true;
ivy.enable = true;
completion.enable = true;
coq.enable = true;
fish.enable = true;
nix.enable = true;
latex.enable = true;
rust.enable = true;
git.enable = true;
ocaml.enable = true;
c.enable = false;
org = {
enable = true;
agenda-files = [
"/home/alex/Dropbox/org/SortOutLife.org"
];
};
python.enable = true;
javascript.enable = true;
systemd.enable = true;
yaml.enable = true;
lsp = {
enable = true;
ui = true;
};
haskell = {
enable = true;
};
markdown.enable = true;
};
settings = {
config-command.enable = true;
cancel-minibuffer-with-mouse = true;
minibuffer-inherit-input-mode = false;
};
init-el.preamble = ''
(defun reasoning-block (n)
(interactive "nLines: ")
(let ((indent (current-indentation)))
(progn (defun go (n)
(if (> n 0) (progn
(insert (make-string (+ 2 indent) ?\s))
(insert "?\n")
(insert (make-string (+ 4 indent) ?\s))
(insert "≈⟨ ? ⟩\n")
(go (- n 1)))))
(insert "begin\n")
(go n)
(insert (make-string (+ 2 indent) ?\s))
(insert "? ∎"))))
'';
custom.enable = true;
keybindings.hydra.hydra-agda.bindings."e" = {
command = "reasoning-block";
colour = "blue";
};
package = {
which-key.enable = false;
company.use-package.custom.company-dabbrev-downcase = "nil";
catt-mode = {
enable = true;
package = catt-mode;
use-package.mode = ''"\\.catt\\'"'';
};
haskell-mode.external-packages = [];
direnv.enable = true;
org-roam = {
enable = true;
settings.directory = "~/Dropbox/roam";
};
org-ref = {
enable = true;
settings.bibliography = ''"/home/alex/Dropbox/citations/citations.bib"'';
use-package.custom.org-ref-pdf-directory = ''"/home/alex/Dropbox/citations"'';
};
ivy-bibtex.enable = true;
org-roam-bibtex.enable = true;
xah-fly-keys = {
enable = true;
settings = {
keyboard-layout = "dvorak";
major-mode-bind-key = ".";
command-mode-bindings = {
";" = "self-insert-command";
"#" = "xah-comment-dwim";
};
};
use-package.bind."<end>" = "xah-fly-command-mode-activate";
use-package.bind."<menu>" = "xah-fly-command-mode-activate";
use-package.bind."<VoidSymbol>" = "xah-fly-command-mode-activate";
};
unicode-fonts.enable = true;
tex.settings.TeX-view-program-selection.output-pdf = "Zathura";
doom-modeline.use-package.custom.doom-modeline-icon = true;
nix-mode.use-package.demand = true;
};
appearance = {
theme = {
enable = true;
package = epkgs.doom-themes;
themeName = "doom-dracula";
extraConfig = ''
; Enable flashing mode-line on errors
(doom-themes-visual-bell-config)
;; Enable custom neotree theme (all-the-icons must be installed!)
(doom-themes-neotree-config)
(doom-themes-org-config)
'';
};
fonts = {
unicode-font = "DejaVu Sans";
# font = "Source Code Pro 10";
};
};
}