diff options
-rw-r--r-- | flake.lock | 164 | ||||
-rw-r--r-- | flake.nix | 4 | ||||
-rw-r--r-- | home.nix | 1 | ||||
-rw-r--r-- | hosts/olive/configuration.nix | 14 | ||||
-rw-r--r-- | programs/default.nix | 5 | ||||
-rw-r--r-- | programs/git.nix | 56 | ||||
-rw-r--r-- | programs/neovim.nix | 9 | ||||
-rw-r--r-- | services/sxhkd.nix | 13 |
8 files changed, 112 insertions, 154 deletions
@@ -2,7 +2,10 @@ | |||
2 | "nodes": { | 2 | "nodes": { |
3 | "fenix": { | 3 | "fenix": { |
4 | "inputs": { | 4 | "inputs": { |
5 | "nixpkgs": "nixpkgs_3", | 5 | "nixpkgs": [ |
6 | "prompt", | ||
7 | "nixpkgs" | ||
8 | ], | ||
6 | "rust-analyzer-src": "rust-analyzer-src" | 9 | "rust-analyzer-src": "rust-analyzer-src" |
7 | }, | 10 | }, |
8 | "locked": { | 11 | "locked": { |
@@ -21,15 +24,18 @@ | |||
21 | }, | 24 | }, |
22 | "fenix_2": { | 25 | "fenix_2": { |
23 | "inputs": { | 26 | "inputs": { |
24 | "nixpkgs": "nixpkgs_5", | 27 | "nixpkgs": [ |
28 | "statix", | ||
29 | "nixpkgs" | ||
30 | ], | ||
25 | "rust-analyzer-src": "rust-analyzer-src_2" | 31 | "rust-analyzer-src": "rust-analyzer-src_2" |
26 | }, | 32 | }, |
27 | "locked": { | 33 | "locked": { |
28 | "lastModified": 1642141613, | 34 | "lastModified": 1645251813, |
29 | "narHash": "sha256-WFS7T5oOLD8anu/77iz7EPz7zQsJZtP5qVa5485k3dI=", | 35 | "narHash": "sha256-cQ66tGjnZclBCS3nD26mZ5fUH+3/HnysGffBiWXUSHk=", |
30 | "owner": "nix-community", | 36 | "owner": "nix-community", |
31 | "repo": "fenix", | 37 | "repo": "fenix", |
32 | "rev": "d75ffc9f1d3b60bb597e48ae01f486a6de27d30e", | 38 | "rev": "9892337b588c38ec59466a1c89befce464aae7f8", |
33 | "type": "github" | 39 | "type": "github" |
34 | }, | 40 | }, |
35 | "original": { | 41 | "original": { |
@@ -41,11 +47,11 @@ | |||
41 | "flake-compat": { | 47 | "flake-compat": { |
42 | "flake": false, | 48 | "flake": false, |
43 | "locked": { | 49 | "locked": { |
44 | "lastModified": 1641205782, | 50 | "lastModified": 1650374568, |
45 | "narHash": "sha256-4jY7RCWUoZ9cKD8co0/4tFARpWB+57+r1bLLvXNJliY=", | 51 | "narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=", |
46 | "owner": "edolstra", | 52 | "owner": "edolstra", |
47 | "repo": "flake-compat", | 53 | "repo": "flake-compat", |
48 | "rev": "b7547d3eed6f32d06102ead8991ec52ab0a4f1a7", | 54 | "rev": "b4a34015c698c7793d592d66adbab377907a2be8", |
49 | "type": "github" | 55 | "type": "github" |
50 | }, | 56 | }, |
51 | "original": { | 57 | "original": { |
@@ -56,11 +62,11 @@ | |||
56 | }, | 62 | }, |
57 | "flake-utils": { | 63 | "flake-utils": { |
58 | "locked": { | 64 | "locked": { |
59 | "lastModified": 1629481132, | 65 | "lastModified": 1644229661, |
60 | "narHash": "sha256-JHgasjPR0/J1J3DRm4KxM4zTyAj4IOJY8vIl75v/kPI=", | 66 | "narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=", |
61 | "owner": "numtide", | 67 | "owner": "numtide", |
62 | "repo": "flake-utils", | 68 | "repo": "flake-utils", |
63 | "rev": "997f7efcb746a9c140ce1f13c72263189225f482", | 69 | "rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797", |
64 | "type": "github" | 70 | "type": "github" |
65 | }, | 71 | }, |
66 | "original": { | 72 | "original": { |
@@ -71,7 +77,10 @@ | |||
71 | }, | 77 | }, |
72 | "gitignore": { | 78 | "gitignore": { |
73 | "inputs": { | 79 | "inputs": { |
74 | "nixpkgs": "nixpkgs_4" | 80 | "nixpkgs": [ |
81 | "prompt", | ||
82 | "nixpkgs" | ||
83 | ] | ||
75 | }, | 84 | }, |
76 | "locked": { | 85 | "locked": { |
77 | "lastModified": 1635165013, | 86 | "lastModified": 1635165013, |
@@ -89,7 +98,10 @@ | |||
89 | }, | 98 | }, |
90 | "gitignore_2": { | 99 | "gitignore_2": { |
91 | "inputs": { | 100 | "inputs": { |
92 | "nixpkgs": "nixpkgs_6" | 101 | "nixpkgs": [ |
102 | "statix", | ||
103 | "nixpkgs" | ||
104 | ] | ||
93 | }, | 105 | }, |
94 | "locked": { | 106 | "locked": { |
95 | "lastModified": 1635165013, | 107 | "lastModified": 1635165013, |
@@ -112,16 +124,16 @@ | |||
112 | ] | 124 | ] |
113 | }, | 125 | }, |
114 | "locked": { | 126 | "locked": { |
115 | "lastModified": 1642653493, | 127 | "lastModified": 1656169755, |
116 | "narHash": "sha256-22mGPjiHUo2Jmze4IjXCJLjeK2mbvvCztHmUyUMr4yw=", | 128 | "narHash": "sha256-Nlnm4jeQWEGjYrE6hxi/7HYHjBSZ/E0RtjCYifnNsWk=", |
117 | "owner": "nix-community", | 129 | "owner": "nix-community", |
118 | "repo": "home-manager", | 130 | "repo": "home-manager", |
119 | "rev": "28b9ae40c45c5e7711c353fee1b7af734e293979", | 131 | "rev": "4a3d01fb53f52ac83194081272795aa4612c2381", |
120 | "type": "github" | 132 | "type": "github" |
121 | }, | 133 | }, |
122 | "original": { | 134 | "original": { |
123 | "owner": "nix-community", | 135 | "owner": "nix-community", |
124 | "ref": "release-21.11", | 136 | "ref": "release-22.05", |
125 | "repo": "home-manager", | 137 | "repo": "home-manager", |
126 | "type": "github" | 138 | "type": "github" |
127 | } | 139 | } |
@@ -133,11 +145,11 @@ | |||
133 | "nixpkgs": "nixpkgs" | 145 | "nixpkgs": "nixpkgs" |
134 | }, | 146 | }, |
135 | "locked": { | 147 | "locked": { |
136 | "lastModified": 1644135144, | 148 | "lastModified": 1660983413, |
137 | "narHash": "sha256-ga02Em84w/rmDVoHha8PG9wiznz9Ew7ReETbXnokj7M=", | 149 | "narHash": "sha256-qy254SuW4aeKoCSDkHc94PvBbiWBwKE2rYCbg2YgByA=", |
138 | "owner": "nix-community", | 150 | "owner": "nix-community", |
139 | "repo": "neovim-nightly-overlay", | 151 | "repo": "neovim-nightly-overlay", |
140 | "rev": "98a805c76bf18c9a45b0e0c729cc0e2975c25628", | 152 | "rev": "a8da96a656f22d5dfdd090a32293187159cb55ee", |
141 | "type": "github" | 153 | "type": "github" |
142 | }, | 154 | }, |
143 | "original": { | 155 | "original": { |
@@ -156,11 +168,11 @@ | |||
156 | }, | 168 | }, |
157 | "locked": { | 169 | "locked": { |
158 | "dir": "contrib", | 170 | "dir": "contrib", |
159 | "lastModified": 1644113939, | 171 | "lastModified": 1660982695, |
160 | "narHash": "sha256-n5rTM+kjEoXxTqaHle4AhrSiqRW2fc2U+Kor1whbaXQ=", | 172 | "narHash": "sha256-LJrwB5xU5+9ym8HY0eEA1QfUDb+UF9PWMy23WChGXdY=", |
161 | "owner": "neovim", | 173 | "owner": "neovim", |
162 | "repo": "neovim", | 174 | "repo": "neovim", |
163 | "rev": "8215c05945054755b2c3cadae198894372dbfe0f", | 175 | "rev": "1cc4706e94489498b12c4844c1b3a2e9aa5cc921", |
164 | "type": "github" | 176 | "type": "github" |
165 | }, | 177 | }, |
166 | "original": { | 178 | "original": { |
@@ -172,11 +184,11 @@ | |||
172 | }, | 184 | }, |
173 | "nixos-hardware": { | 185 | "nixos-hardware": { |
174 | "locked": { | 186 | "locked": { |
175 | "lastModified": 1641965797, | 187 | "lastModified": 1660407119, |
176 | "narHash": "sha256-AfxfIzAZbt9aAzpVBn0Bwhd/M4Wix7G91kEjm9H6FPo=", | 188 | "narHash": "sha256-04lWO0pDbhAXFdL4v2VzzwgxrZ5IefKn+TmZPiPeKxg=", |
177 | "owner": "nixos", | 189 | "owner": "nixos", |
178 | "repo": "nixos-hardware", | 190 | "repo": "nixos-hardware", |
179 | "rev": "87a35a0d58f546dc23f37b4f6af575d0e4be6a7a", | 191 | "rev": "12620020f76b1b5d2b0e6fbbda831ed4f5fe56e1", |
180 | "type": "github" | 192 | "type": "github" |
181 | }, | 193 | }, |
182 | "original": { | 194 | "original": { |
@@ -187,11 +199,11 @@ | |||
187 | }, | 199 | }, |
188 | "nixpkgs": { | 200 | "nixpkgs": { |
189 | "locked": { | 201 | "locked": { |
190 | "lastModified": 1643805626, | 202 | "lastModified": 1660819943, |
191 | "narHash": "sha256-AXLDVMG+UaAGsGSpOtQHPIKB+IZ0KSd9WS77aanGzgc=", | 203 | "narHash": "sha256-TRZV/mlW1eYuojqDC3ueYWj7jsTKXJCtyMLNYX/Ybtw=", |
192 | "owner": "nixos", | 204 | "owner": "nixos", |
193 | "repo": "nixpkgs", | 205 | "repo": "nixpkgs", |
194 | "rev": "554d2d8aa25b6e583575459c297ec23750adb6cb", | 206 | "rev": "8ea014acc33da95ea56c902229957d8225005163", |
195 | "type": "github" | 207 | "type": "github" |
196 | }, | 208 | }, |
197 | "original": { | 209 | "original": { |
@@ -203,80 +215,20 @@ | |||
203 | }, | 215 | }, |
204 | "nixpkgs_2": { | 216 | "nixpkgs_2": { |
205 | "locked": { | 217 | "locked": { |
206 | "lastModified": 1643347846, | 218 | "lastModified": 1660926553, |
207 | "narHash": "sha256-O0tyXF//ppRpe9yT1Uu5n34yI2MWDyY6ZiJ4Qn5zIkE=", | 219 | "narHash": "sha256-19Ib1b7Ny+yGhnxwnH1KhhB2hvALuNuqevA6XzqkQmo=", |
208 | "owner": "NixOS", | 220 | "owner": "NixOS", |
209 | "repo": "nixpkgs", | 221 | "repo": "nixpkgs", |
210 | "rev": "5bb20f9dc70e9ee16e21cc404b6508654931ce41", | 222 | "rev": "00e376e3f3c22d991052dfeaf154c42b09deeb29", |
211 | "type": "github" | 223 | "type": "github" |
212 | }, | 224 | }, |
213 | "original": { | 225 | "original": { |
214 | "owner": "NixOS", | 226 | "owner": "NixOS", |
215 | "ref": "nixos-unstable", | 227 | "ref": "nixos-22.05", |
216 | "repo": "nixpkgs", | 228 | "repo": "nixpkgs", |
217 | "type": "github" | 229 | "type": "github" |
218 | } | 230 | } |
219 | }, | 231 | }, |
220 | "nixpkgs_3": { | ||
221 | "locked": { | ||
222 | "lastModified": 1643347846, | ||
223 | "narHash": "sha256-O0tyXF//ppRpe9yT1Uu5n34yI2MWDyY6ZiJ4Qn5zIkE=", | ||
224 | "owner": "nixos", | ||
225 | "repo": "nixpkgs", | ||
226 | "rev": "5bb20f9dc70e9ee16e21cc404b6508654931ce41", | ||
227 | "type": "github" | ||
228 | }, | ||
229 | "original": { | ||
230 | "owner": "nixos", | ||
231 | "ref": "nixos-unstable", | ||
232 | "repo": "nixpkgs", | ||
233 | "type": "github" | ||
234 | } | ||
235 | }, | ||
236 | "nixpkgs_4": { | ||
237 | "locked": { | ||
238 | "lastModified": 1643322911, | ||
239 | "narHash": "sha256-WLe4lXAYXH/v80iO02npX1wdXq4nIVEHJTONLXbQrL0=", | ||
240 | "owner": "NixOS", | ||
241 | "repo": "nixpkgs", | ||
242 | "rev": "d9e21f284317f85b3476c0043f4efea87a226c3a", | ||
243 | "type": "github" | ||
244 | }, | ||
245 | "original": { | ||
246 | "id": "nixpkgs", | ||
247 | "type": "indirect" | ||
248 | } | ||
249 | }, | ||
250 | "nixpkgs_5": { | ||
251 | "locked": { | ||
252 | "lastModified": 1643347846, | ||
253 | "narHash": "sha256-O0tyXF//ppRpe9yT1Uu5n34yI2MWDyY6ZiJ4Qn5zIkE=", | ||
254 | "owner": "nixos", | ||
255 | "repo": "nixpkgs", | ||
256 | "rev": "5bb20f9dc70e9ee16e21cc404b6508654931ce41", | ||
257 | "type": "github" | ||
258 | }, | ||
259 | "original": { | ||
260 | "owner": "nixos", | ||
261 | "ref": "nixos-unstable", | ||
262 | "repo": "nixpkgs", | ||
263 | "type": "github" | ||
264 | } | ||
265 | }, | ||
266 | "nixpkgs_6": { | ||
267 | "locked": { | ||
268 | "lastModified": 1643322911, | ||
269 | "narHash": "sha256-WLe4lXAYXH/v80iO02npX1wdXq4nIVEHJTONLXbQrL0=", | ||
270 | "owner": "NixOS", | ||
271 | "repo": "nixpkgs", | ||
272 | "rev": "d9e21f284317f85b3476c0043f4efea87a226c3a", | ||
273 | "type": "github" | ||
274 | }, | ||
275 | "original": { | ||
276 | "id": "nixpkgs", | ||
277 | "type": "indirect" | ||
278 | } | ||
279 | }, | ||
280 | "prompt": { | 232 | "prompt": { |
281 | "inputs": { | 233 | "inputs": { |
282 | "fenix": "fenix", | 234 | "fenix": "fenix", |
@@ -286,11 +238,11 @@ | |||
286 | ] | 238 | ] |
287 | }, | 239 | }, |
288 | "locked": { | 240 | "locked": { |
289 | "lastModified": 1643476516, | 241 | "lastModified": 1643513342, |
290 | "narHash": "sha256-v1reqZPpdlyyOYs7ygbvhsH702++3bHdFe6RayJagvw=", | 242 | "narHash": "sha256-t819RkW5NiURx4lJlGMfHW3IuAMJtK29jUpAqUixKeg=", |
291 | "ref": "master", | 243 | "ref": "refs/heads/master", |
292 | "rev": "4d3e72f5f03b5a0db1d69f262990a0519a9d8947", | 244 | "rev": "8b1dd1f5609447f5d862e330a75a4b2a0dfc3929", |
293 | "revCount": 2, | 245 | "revCount": 3, |
294 | "type": "git", | 246 | "type": "git", |
295 | "url": "https://git.peppe.rs/cli/prompt" | 247 | "url": "https://git.peppe.rs/cli/prompt" |
296 | }, | 248 | }, |
@@ -329,11 +281,11 @@ | |||
329 | "rust-analyzer-src_2": { | 281 | "rust-analyzer-src_2": { |
330 | "flake": false, | 282 | "flake": false, |
331 | "locked": { | 283 | "locked": { |
332 | "lastModified": 1642101527, | 284 | "lastModified": 1645205556, |
333 | "narHash": "sha256-C4zcaWULWlrirpEt/pA85CCMBt+7SWZweMaMJ7EvrXw=", | 285 | "narHash": "sha256-e4lZW3qRyOEJ+vLKFQP7m2Dxh5P44NrnekZYLxlucww=", |
334 | "owner": "rust-analyzer", | 286 | "owner": "rust-analyzer", |
335 | "repo": "rust-analyzer", | 287 | "repo": "rust-analyzer", |
336 | "rev": "b4c31481a554d0132003228ba319bd9476fe85ae", | 288 | "rev": "acf5874b39f3dc5262317a6074d9fc7285081161", |
337 | "type": "github" | 289 | "type": "github" |
338 | }, | 290 | }, |
339 | "original": { | 291 | "original": { |
@@ -352,11 +304,11 @@ | |||
352 | ] | 304 | ] |
353 | }, | 305 | }, |
354 | "locked": { | 306 | "locked": { |
355 | "lastModified": 1643431421, | 307 | "lastModified": 1657460333, |
356 | "narHash": "sha256-LOuaDkOU5E+I6NTLboU1q5Of2HBAMALfxdg2gQTF2zg=", | 308 | "narHash": "sha256-5o6zMBASEsGKtjKDb3SizJnN9A7qpOcbzWBXsacfMyc=", |
357 | "ref": "master", | 309 | "ref": "refs/heads/master", |
358 | "rev": "8e4eeb979ebaa8f0f461e66d986a75c3a80220b6", | 310 | "rev": "6422c959d365dee2fda5eda8858fefad31f17b25", |
359 | "revCount": 106, | 311 | "revCount": 129, |
360 | "type": "git", | 312 | "type": "git", |
361 | "url": "https://git.peppe.rs/languages/statix" | 313 | "url": "https://git.peppe.rs/languages/statix" |
362 | }, | 314 | }, |
@@ -2,12 +2,12 @@ | |||
2 | description = "nerdypepper's nixos config"; | 2 | description = "nerdypepper's nixos config"; |
3 | 3 | ||
4 | inputs = { | 4 | inputs = { |
5 | nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | 5 | nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05"; |
6 | 6 | ||
7 | nixos-hardware.url = "github:nixos/nixos-hardware"; | 7 | nixos-hardware.url = "github:nixos/nixos-hardware"; |
8 | 8 | ||
9 | home-manager = { | 9 | home-manager = { |
10 | url = "github:nix-community/home-manager/release-21.11"; | 10 | url = "github:nix-community/home-manager/release-22.05"; |
11 | inputs.nixpkgs.follows = "nixpkgs"; | 11 | inputs.nixpkgs.follows = "nixpkgs"; |
12 | }; | 12 | }; |
13 | 13 | ||
@@ -58,6 +58,7 @@ | |||
58 | inotify-tools | 58 | inotify-tools |
59 | rtorrent | 59 | rtorrent |
60 | sxiv | 60 | sxiv |
61 | lftp | ||
61 | 62 | ||
62 | # meta | 63 | # meta |
63 | nixpkgs-review | 64 | nixpkgs-review |
diff --git a/hosts/olive/configuration.nix b/hosts/olive/configuration.nix index 5ecce25..c4e7f17 100644 --- a/hosts/olive/configuration.nix +++ b/hosts/olive/configuration.nix | |||
@@ -14,10 +14,8 @@ | |||
14 | networking = { | 14 | networking = { |
15 | hostName = "olive"; | 15 | hostName = "olive"; |
16 | wireless = { | 16 | wireless = { |
17 | enable = true; | 17 | iwd.enable = true; |
18 | interfaces = [ | 18 | interfaces = [ "wlan0" ]; |
19 | "wlp2s0" | ||
20 | ]; | ||
21 | environmentFile = "/home/np/.wireless.env"; | 19 | environmentFile = "/home/np/.wireless.env"; |
22 | networks = { | 20 | networks = { |
23 | Sanic.psk = "@PSK_SANI@"; | 21 | Sanic.psk = "@PSK_SANI@"; |
@@ -31,10 +29,10 @@ | |||
31 | ''; | 29 | ''; |
32 | }; | 30 | }; |
33 | useDHCP = false; | 31 | useDHCP = false; |
34 | interfaces.wlp2s0.useDHCP = true; | 32 | interfaces.wlan0.useDHCP = true; |
35 | }; | 33 | }; |
36 | 34 | ||
37 | #networking.nameservers = [ "1.1.1.1" "1.0.0.1" ]; | 35 | networking.nameservers = [ "1.1.1.1" "1.0.0.1" ]; |
38 | 36 | ||
39 | i18n.defaultLocale = "en_US.UTF-8"; | 37 | i18n.defaultLocale = "en_US.UTF-8"; |
40 | time.timeZone = "Asia/Kolkata"; | 38 | time.timeZone = "Asia/Kolkata"; |
@@ -124,10 +122,10 @@ | |||
124 | nix = { | 122 | nix = { |
125 | package = pkgs.nixUnstable; | 123 | package = pkgs.nixUnstable; |
126 | extraOptions = '' | 124 | extraOptions = '' |
127 | experimental-features = nix-command flakes ca-derivations | 125 | experimental-features = nix-command flakes |
128 | warn-dirty = false | 126 | warn-dirty = false |
129 | keep-outputs = false | 127 | keep-outputs = false |
130 | keep-derivations = true | 128 | keep-derivations = false |
131 | ''; | 129 | ''; |
132 | settings = { | 130 | settings = { |
133 | trusted-users = [ | 131 | trusted-users = [ |
diff --git a/programs/default.nix b/programs/default.nix index 8157c8a..2b12888 100644 --- a/programs/default.nix +++ b/programs/default.nix | |||
@@ -27,10 +27,7 @@ | |||
27 | direnv = { | 27 | direnv = { |
28 | enable = true; | 28 | enable = true; |
29 | enableBashIntegration = true; | 29 | enableBashIntegration = true; |
30 | nix-direnv = { | 30 | nix-direnv.enable = true; |
31 | enable = true; | ||
32 | enableFlakes = true; | ||
33 | }; | ||
34 | }; | 31 | }; |
35 | autojump = { | 32 | autojump = { |
36 | enable = true; | 33 | enable = true; |
diff --git a/programs/git.nix b/programs/git.nix index dc842ce..b906efa 100644 --- a/programs/git.nix +++ b/programs/git.nix | |||
@@ -9,9 +9,35 @@ with theme; | |||
9 | programs.git = { | 9 | programs.git = { |
10 | enable = true; | 10 | enable = true; |
11 | ignores = [ ".envrc" ]; | 11 | ignores = [ ".envrc" ]; |
12 | delta.enable = true; | ||
13 | userEmail = "[email protected]"; | 12 | userEmail = "[email protected]"; |
14 | userName = "Akshay"; | 13 | userName = "Akshay"; |
14 | delta = { | ||
15 | enable = true; | ||
16 | options = { | ||
17 | features = "decorations labels"; | ||
18 | syntax-theme = "none"; | ||
19 | zero-style = "8"; | ||
20 | navigate = "true"; | ||
21 | keep-plus-minus-markers = "true"; | ||
22 | decorations = { | ||
23 | file-decoration-style = "none"; | ||
24 | whitespace-error-style = "22 reverse"; | ||
25 | minus-style = "${base08}"; | ||
26 | minus-emph-style = "${base08} bold"; | ||
27 | plus-style = "${base0B}"; | ||
28 | plus-emph-style = "${base0B} bold"; | ||
29 | file-style = "7 italic"; | ||
30 | hunk-header-style = "7"; | ||
31 | hunk-header-decoration-style = "8 ul"; | ||
32 | }; | ||
33 | labels = { | ||
34 | file-modified-label = " MODIFIED "; | ||
35 | file-removed-label = " REMOVED "; | ||
36 | file-added-label = " ADDED "; | ||
37 | file-renamed-label = " RENAMED "; | ||
38 | }; | ||
39 | }; | ||
40 | }; | ||
15 | extraConfig = { | 41 | extraConfig = { |
16 | commit.verbose = true; | 42 | commit.verbose = true; |
17 | core = { | 43 | core = { |
@@ -20,30 +46,4 @@ with theme; | |||
20 | }; | 46 | }; |
21 | }; | 47 | }; |
22 | } | 48 | } |
23 | # delta = { | 49 | |
24 | # enable = true; | ||
25 | # options = { | ||
26 | # features = "decorations labels"; | ||
27 | # syntax-theme = "none"; | ||
28 | # zero-style = "8"; | ||
29 | # navigate = "true"; | ||
30 | # keep-plus-minus-markers = "true"; | ||
31 | # decorations = { | ||
32 | # file-decoration-style = "none"; | ||
33 | # whitespace-error-style = "22 reverse"; | ||
34 | # minus-style = "${base08}"; | ||
35 | # minus-emph-style = "${base08} bold"; | ||
36 | # plus-style = "${base0B}"; | ||
37 | # plus-emph-style = "${base0B} bold"; | ||
38 | # file-style = "7 italic"; | ||
39 | # hunk-header-style = "7"; | ||
40 | # hunk-header-decoration-style = "8 ul"; | ||
41 | # }; | ||
42 | # labels = { | ||
43 | # file-modified-label = " MODIFIED "; | ||
44 | # file-removed-label = " REMOVED "; | ||
45 | # file-added-label = " ADDED "; | ||
46 | # file-renamed-label = " RENAMED "; | ||
47 | # }; | ||
48 | # }; | ||
49 | # }; | ||
diff --git a/programs/neovim.nix b/programs/neovim.nix index f108993..6095e0f 100644 --- a/programs/neovim.nix +++ b/programs/neovim.nix | |||
@@ -12,11 +12,10 @@ | |||
12 | vimAlias = true; | 12 | vimAlias = true; |
13 | withPython3 = true; | 13 | withPython3 = true; |
14 | extraPackages = with pkgs; [ | 14 | extraPackages = with pkgs; [ |
15 | gcc | 15 | # gcc |
16 | python37Packages.yapf | 16 | # python37Packages.yapf |
17 | hlint | 17 | # hlint |
18 | ocamlformat | 18 | # ocamlformat |
19 | ocamlPackages.ocaml-lsp | ||
20 | ]; | 19 | ]; |
21 | plugins = with pkgs.vimPlugins; [ | 20 | plugins = with pkgs.vimPlugins; [ |
22 | # neovim only | 21 | # neovim only |
diff --git a/services/sxhkd.nix b/services/sxhkd.nix index 8658875..debe1b5 100644 --- a/services/sxhkd.nix +++ b/services/sxhkd.nix | |||
@@ -4,6 +4,9 @@ | |||
4 | , ... | 4 | , ... |
5 | }: | 5 | }: |
6 | 6 | ||
7 | let | ||
8 | jumpTo = app: "${pkgs.xdotool}/bin/xdotool search \"${app}\" windowactivate"; | ||
9 | in | ||
7 | { | 10 | { |
8 | services.sxhkd = { | 11 | services.sxhkd = { |
9 | enable = true; | 12 | enable = true; |
@@ -11,7 +14,15 @@ | |||
11 | "XF86Audio{Lower,Raise}Volume" = "${pkgs.alsaUtils}/bin/amixer sset Master 2%{-,+}"; | 14 | "XF86Audio{Lower,Raise}Volume" = "${pkgs.alsaUtils}/bin/amixer sset Master 2%{-,+}"; |
12 | "XF86AudioMute" = "${pkgs.alsaUtils}/bin/amixer sset Master toggle"; | 15 | "XF86AudioMute" = "${pkgs.alsaUtils}/bin/amixer sset Master toggle"; |
13 | "XF86MonBrightness{Down,Up}" = "${pkgs.light}/bin/light -{U,A} 5"; | 16 | "XF86MonBrightness{Down,Up}" = "${pkgs.light}/bin/light -{U,A} 5"; |
14 | "super + Escape" = "pkill -USR1 -x sxhkd"; | 17 | |
18 | # jump to firefox | ||
19 | "super + alt + shift + ctrl + f" = jumpTo "Mozilla Firefox"; | ||
20 | |||
21 | # jump to st | ||
22 | "super + alt + shift + ctrl + s" = jumpTo "st"; | ||
23 | |||
24 | # jump to zathura | ||
25 | "super + alt + shift + ctrl + z" = jumpTo "zathura"; | ||
15 | }; | 26 | }; |
16 | }; | 27 | }; |
17 | } | 28 | } |