2021-05-30 19:10:28 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
psCfg = config.pub-solar;
|
|
|
|
in {
|
2023-10-07 14:45:42 +00:00
|
|
|
users.users."${psCfg.user.name}".packages = with pkgs; [
|
|
|
|
uhk-agent
|
|
|
|
];
|
2021-05-30 19:10:28 +00:00
|
|
|
|
2023-10-07 14:45:42 +00:00
|
|
|
# Ultimate Hacking Keyboard rules
|
|
|
|
# These are the udev rules for accessing the USB interfaces of the UHK as non-root users.
|
|
|
|
services.udev.packages = with pkgs; [
|
|
|
|
uhk-agent
|
|
|
|
];
|
2021-05-30 19:10:28 +00:00
|
|
|
|
2023-10-07 14:45:42 +00:00
|
|
|
services.udev.extraRules = ''
|
|
|
|
SUBSYSTEM=="input", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", GROUP="input", MODE="0660"
|
|
|
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", TAG+="uaccess"
|
|
|
|
KERNEL=="hidraw*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", TAG+="uaccess"
|
|
|
|
'';
|
2021-05-30 19:10:28 +00:00
|
|
|
}
|