about summary refs log tree commit diff
path: root/nixpkgs/nixos/modules/hardware/wooting.nix
blob: 78bbcb61aca7b8a0dd476b2600e523cb8d3a0d17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{ config, lib, pkgs, ... }:

with lib;
{
  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'');

  config = mkIf config.hardware.wooting.enable {
    environment.systemPackages = [ pkgs.wootility ];
    services.udev.packages = [ pkgs.wooting-udev-rules ];
  };
}