add uhk
This commit is contained in:
parent
d4507b8176
commit
0a06ecc41f
2 changed files with 7 additions and 1 deletions
|
@ -8,6 +8,11 @@
|
||||||
|
|
||||||
config = lib.mkIf (config.components.gui.kmonad.enable) {
|
config = lib.mkIf (config.components.gui.kmonad.enable) {
|
||||||
|
|
||||||
|
# only needed if you have an UHK
|
||||||
|
hardware.keyboard.uhk.enable = true;
|
||||||
|
environment.systemPackages = [ pkgs.uhk-agent ];
|
||||||
|
users.users.mainUser.extraGroups = [ "input" ];
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
layout = "us";
|
layout = "us";
|
||||||
xkbOptions = "compose:ralt";
|
xkbOptions = "compose:ralt";
|
||||||
|
@ -57,6 +62,7 @@
|
||||||
{
|
{
|
||||||
nativ = keyboard "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
|
nativ = keyboard "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
|
||||||
dasKeyboard = keyboard "/dev/input/by-id/usb-Metadot_-_Das_Keyboard_Das_Keyboard-event-kbd";
|
dasKeyboard = keyboard "/dev/input/by-id/usb-Metadot_-_Das_Keyboard_Das_Keyboard-event-kbd";
|
||||||
|
uhk = keyboard "/dev/input/by-id/usb-Ultimate_Gadget_Laboratories_UHK_60_v2-if01-event-kbd";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -72,7 +72,7 @@ in
|
||||||
uid = cfg.uid;
|
uid = cfg.uid;
|
||||||
home = "/home/${cfg.userName}";
|
home = "/home/${cfg.userName}";
|
||||||
initialPassword = cfg.userName;
|
initialPassword = cfg.userName;
|
||||||
extraGroups = [ "wheel" "networkmanager" "transmission" "wireshark" "audio" "pipewire" ]
|
extraGroups = [ "wheel" "networkmanager" "transmission" "wireshark" "audio" "pipewire" "input" ]
|
||||||
++ dockerGroup ++ vboxGroup ++ cfg.extraGroups;
|
++ dockerGroup ++ vboxGroup ++ cfg.extraGroups;
|
||||||
openssh.authorizedKeys.keyFiles = cfg.authorizedKeyFiles;
|
openssh.authorizedKeys.keyFiles = cfg.authorizedKeyFiles;
|
||||||
group = config.users.groups.mainUser.name;
|
group = config.users.groups.mainUser.name;
|
||||||
|
|
Loading…
Reference in a new issue