2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
2024-09-19 14:19:46 +00:00
|
|
|
options.hardware.wooting.enable = lib.mkEnableOption ''support for Wooting keyboards.
|
2024-04-21 15:54:59 +00:00
|
|
|
Note that users must be in the "input" group for udev rules to apply'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
config = lib.mkIf config.hardware.wooting.enable {
|
2020-04-24 23:36:52 +00:00
|
|
|
environment.systemPackages = [ pkgs.wootility ];
|
|
|
|
services.udev.packages = [ pkgs.wooting-udev-rules ];
|
|
|
|
};
|
|
|
|
}
|