2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
{
|
2023-08-04 22:07:22 +00:00
|
|
|
options.hardware.wooting.enable = mkEnableOption (lib.mdDoc ''support for Wooting keyboards.
|
|
|
|
Note that users must be in the "input" group for udev rules to apply'');
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
config = mkIf config.hardware.wooting.enable {
|
|
|
|
environment.systemPackages = [ pkgs.wootility ];
|
|
|
|
services.udev.packages = [ pkgs.wooting-udev-rules ];
|
|
|
|
};
|
|
|
|
}
|