summaryrefslogtreecommitdiff
path: root/home.nix
diff options
context:
space:
mode:
authorvin <git@vineetk.net>2024-08-10 12:20:15 -0400
committervin <git@vineetk.net>2024-08-10 12:21:18 -0400
commit7d0b405cd8367278c3c9f2fc3f280cd37e8b7c7a (patch)
tree2c4251ad0a217b1450cd533ad7fa2f13cde93a04 /home.nix
parent4ea36c01c785208823cc1240bfc90279dd89bd1c (diff)
update zsh config
Diffstat (limited to 'home.nix')
-rw-r--r--home.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/home.nix b/home.nix
index b9f2bfc..b7f77ef 100644
--- a/home.nix
+++ b/home.nix
@@ -32,6 +32,23 @@
32 32
33 sessionVariables = { 33 sessionVariables = {
34 #EDITOR = "vis"; 34 #EDITOR = "vis";
35 PAGER = "less";
36 LESS = "-iR";
37 LESSHISTFILE = "/dev/null";
38 #BROWSER = "links -g";
39
40 GOPROXY = "direct";
41
42 AGE_KEY = "~/.ssh/id_ed25519";
43 AGE_PUB = "~/.ssh/id_ed25519.pub";
44 ANGOU_DIR = "/data/angou-age";
45 ANGOU_ENCRYPT = "age -R $AGE_PUB";
46 ANGOU_DECRYPT = "age -d -i $AGE_KEY";
47 ANGOU_EXT = "age";
48 ANGOU_CLIPBOARD = "xsel -ib";
49
50 MOZ_ACCELERATED = 1;
51 MOZ_WEBRENDER = 1;
35 }; 52 };
36 53
37 shellAliases = { 54 shellAliases = {
@@ -152,6 +169,7 @@
152 "*.swp" 169 "*.swp"
153 ]; 170 ];
154 }; 171 };
172
155 vim = { 173 vim = {
156 enable = true; 174 enable = true;
157 defaultEditor = true; 175 defaultEditor = true;
@@ -171,6 +189,27 @@
171 tabstop = 8; 189 tabstop = 8;
172 }; 190 };
173 }; 191 };
192
193 zsh = {
194 enable = true;
195 enableCompletion = true;
196 defaultKeymap = "emacs";
197 history = {
198 ignoreDups = true;
199 ignoreSpace = true;
200 };
201 syntaxHighlighting = {
202 enable = true;
203 highlighters = [
204 "main"
205 "brackets"
206 "pattern"
207 ];
208 patterns = {
209 "rm -rf *" = "fg=white,bold,bg=red";
210 };
211 };
212 };
174 }; 213 };
175 214
176 services = { 215 services = {