2019-12-19 12:29:20 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
{
|
2023-07-04 20:28:49 +01:00
|
|
|
options.hardware.wooting.enable = mkEnableOption ''support for Wooting keyboards.
|
|
|
|
Note that users must be in the "input" group for udev rules to apply'';
|
2019-12-19 12:29:20 +00:00
|
|
|
|
|
|
|
config = mkIf config.hardware.wooting.enable {
|
|
|
|
environment.systemPackages = [ pkgs.wootility ];
|
|
|
|
services.udev.packages = [ pkgs.wooting-udev-rules ];
|
|
|
|
};
|
|
|
|
}
|