mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-26 14:45:29 -08:00
25 lines
513 B
Nix
25 lines
513 B
Nix
|
{ config, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
services.kmonad = {
|
||
|
enable = true;
|
||
|
|
||
|
keyboards.internal = {
|
||
|
device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
|
||
|
config = builtins.readFile ../rsrcs/keyboard.kbd;
|
||
|
|
||
|
defcfg = {
|
||
|
enable = true;
|
||
|
fallthrough = true;
|
||
|
allowCommands = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
services.udev.extraRules =
|
||
|
''
|
||
|
# KMonad user access to /dev/uinput
|
||
|
KERNEL=="uinput", MODE="0660", GROUP="uinput", OPTIONS+="static_node=uinput"
|
||
|
'';
|
||
|
}
|