diff options
author | Akshay <[email protected]> | 2022-06-14 17:37:53 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-06-14 17:37:53 +0100 |
commit | 6066b1bbe2c1cdaa8b0085a92071c11d64e9abbf (patch) | |
tree | 77db1d8e39d425105bf0ad20fb83881654d1ab33 /hosts | |
parent | 0ed4698d124a4bfd9e57fbe99d89b6a46a7c11f0 (diff) |
stuff for colemak
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/olive/configuration.nix | 13 | ||||
-rw-r--r-- | hosts/olive/qmk.rules | 74 |
2 files changed, 81 insertions, 6 deletions
diff --git a/hosts/olive/configuration.nix b/hosts/olive/configuration.nix index 66b5bdc..5ecce25 100644 --- a/hosts/olive/configuration.nix +++ b/hosts/olive/configuration.nix | |||
@@ -18,12 +18,12 @@ | |||
18 | interfaces = [ | 18 | interfaces = [ |
19 | "wlp2s0" | 19 | "wlp2s0" |
20 | ]; | 20 | ]; |
21 | environmentFile = "/run/secrets/wireless.env"; | 21 | environmentFile = "/home/np/.wireless.env"; |
22 | networks = { | 22 | networks = { |
23 | Sanic.pskRaw = "@PSK_SANI@"; | 23 | Sanic.psk = "@PSK_SANI@"; |
24 | Gopalan.pskRaw = "@PSK_GOPA@"; | 24 | Gopalan.psk = "@PSK_GOPA@"; |
25 | Srividhya.pskRaw = "@PSK_SRIV@"; | 25 | Srividhya.psk = "@PSK_SRIV@"; |
26 | sage.pskRaw = "@PSK_SAGE@"; | 26 | sage.psk = "@PSK_SAGE@"; |
27 | }; | 27 | }; |
28 | extraConfig = '' | 28 | extraConfig = '' |
29 | ctrl_interface=/run/wpa_supplicant | 29 | ctrl_interface=/run/wpa_supplicant |
@@ -103,7 +103,6 @@ | |||
103 | services.xserver = { | 103 | services.xserver = { |
104 | enable = true; | 104 | enable = true; |
105 | layout = "us"; | 105 | layout = "us"; |
106 | xkbOptions = "caps:swapescape"; | ||
107 | displayManager.startx.enable = true; | 106 | displayManager.startx.enable = true; |
108 | libinput.enable = true; | 107 | libinput.enable = true; |
109 | }; | 108 | }; |
@@ -114,6 +113,8 @@ | |||
114 | suspendCapacity = 10; | 113 | suspendCapacity = 10; |
115 | }; | 114 | }; |
116 | 115 | ||
116 | services.udev.extraRules = builtins.readFile ./qmk.rules; | ||
117 | |||
117 | users.users.np = { | 118 | users.users.np = { |
118 | isNormalUser = true; | 119 | isNormalUser = true; |
119 | home = "/home/np"; | 120 | home = "/home/np"; |
diff --git a/hosts/olive/qmk.rules b/hosts/olive/qmk.rules new file mode 100644 index 0000000..57806f9 --- /dev/null +++ b/hosts/olive/qmk.rules | |||
@@ -0,0 +1,74 @@ | |||
1 | # Atmel DFU | ||
2 | ### ATmega16U2 | ||
3 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2fef", TAG+="uaccess" | ||
4 | ### ATmega32U2 | ||
5 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff0", TAG+="uaccess" | ||
6 | ### ATmega16U4 | ||
7 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff3", TAG+="uaccess" | ||
8 | ### ATmega32U4 | ||
9 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff4", TAG+="uaccess" | ||
10 | ### AT90USB64 | ||
11 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff9", TAG+="uaccess" | ||
12 | ### AT90USB162 | ||
13 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ffa", TAG+="uaccess" | ||
14 | ### AT90USB128 | ||
15 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ffb", TAG+="uaccess" | ||
16 | |||
17 | # Input Club | ||
18 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c11", ATTRS{idProduct}=="b007", TAG+="uaccess" | ||
19 | |||
20 | # STM32duino | ||
21 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="1eaf", ATTRS{idProduct}=="0003", TAG+="uaccess" | ||
22 | # STM32 DFU | ||
23 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", TAG+="uaccess" | ||
24 | |||
25 | # BootloadHID | ||
26 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", TAG+="uaccess" | ||
27 | |||
28 | # USBAspLoader | ||
29 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", TAG+="uaccess" | ||
30 | |||
31 | # ModemManager should ignore the following devices | ||
32 | # Atmel SAM-BA (Massdrop) | ||
33 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="6124", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
34 | |||
35 | # Caterina (Pro Micro) | ||
36 | ## pid.codes shared PID | ||
37 | ### Keyboardio Atreus 2 Bootloader | ||
38 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2302", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
39 | ## Spark Fun Electronics | ||
40 | ### Pro Micro 3V3/8MHz | ||
41 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9203", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
42 | ### Pro Micro 5V/16MHz | ||
43 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9205", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
44 | ### LilyPad 3V3/8MHz (and some Pro Micro clones) | ||
45 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9207", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
46 | ## Pololu Electronics | ||
47 | ### A-Star 32U4 | ||
48 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="1ffb", ATTRS{idProduct}=="0101", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
49 | ## Arduino SA | ||
50 | ### Leonardo | ||
51 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0036", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
52 | ### Micro | ||
53 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0037", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
54 | ## Adafruit Industries LLC | ||
55 | ### Feather 32U4 | ||
56 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="000c", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
57 | ### ItsyBitsy 32U4 3V3/8MHz | ||
58 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="000d", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
59 | ### ItsyBitsy 32U4 5V/16MHz | ||
60 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="000e", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
61 | ## dog hunter AG | ||
62 | ### Leonardo | ||
63 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="2a03", ATTRS{idProduct}=="0036", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
64 | ### Micro | ||
65 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="2a03", ATTRS{idProduct}=="0037", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
66 | |||
67 | # hid_listen | ||
68 | KERNEL=="hidraw*", MODE="0660", GROUP="plugdev", TAG+="uaccess", TAG+="udev-acl" | ||
69 | |||
70 | # hid bootloaders | ||
71 | ## QMK HID | ||
72 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2067", TAG+="uaccess" | ||
73 | ## PJRC's HalfKay | ||
74 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="0478", TAG+="uaccess" | ||