Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | { kmonad, ... }: { |
| 2 | imports = [ kmonad.nixosModules.default ]; |
Skyler Grey | 967d67e | 2022-10-31 00:04:18 +0000 | [diff] [blame] | 3 | |
Skyler Grey | 5eef407 | 2023-02-26 12:51:25 +0000 | [diff] [blame] | 4 | config = { |
Skyler Grey | 7030149 | 2023-02-24 09:04:51 +0000 | [diff] [blame] | 5 | services.xserver = { |
| 6 | layout = "us"; |
Skyler Grey | 7e1cb7c | 2023-04-17 08:16:00 +0000 | [diff] [blame] | 7 | xkbVariant = ""; |
Skyler Grey | 7030149 | 2023-02-24 09:04:51 +0000 | [diff] [blame] | 8 | }; |
| 9 | |
Skyler Grey | 5eef407 | 2023-02-26 12:51:25 +0000 | [diff] [blame] | 10 | services.kmonad = { |
| 11 | enable = true; |
| 12 | keyboards.laptop-internal = { |
| 13 | device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd"; |
| 14 | config = builtins.readFile ./kmonad/config.kbd; |
| 15 | |
| 16 | defcfg = { |
| 17 | enable = true; |
| 18 | fallthrough = true; |
| 19 | allowCommands = true; |
| 20 | }; |
| 21 | }; |
Skyler Grey | 967d67e | 2022-10-31 00:04:18 +0000 | [diff] [blame] | 22 | }; |
Skyler Grey | 5eef407 | 2023-02-26 12:51:25 +0000 | [diff] [blame] | 23 | hardware.uinput.enable = true; |
Skyler Grey | 967d67e | 2022-10-31 00:04:18 +0000 | [diff] [blame] | 24 | }; |
| 25 | } |