nicks-nix-config/modules/kmonad.nix

25 lines
513 B
Nix
Raw Permalink Normal View History

2022-11-08 19:08:54 -08:00
{ 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"
'';
}