summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--home.nix39
-rw-r--r--hosts/lappy/default.nix1
2 files changed, 40 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 = {
diff --git a/hosts/lappy/default.nix b/hosts/lappy/default.nix
index 46ebaba..b240e26 100644
--- a/hosts/lappy/default.nix
+++ b/hosts/lappy/default.nix
@@ -88,6 +88,7 @@
88 vis # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. 88 vis # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
89 wget 89 wget
90 ]; 90 ];
91 environment.pathsToLink = [ "/share/zsh" ];
91 92
92 programs.zsh.enable = true; 93 programs.zsh.enable = true;
93 94