summary refs log tree commit diff
path: root/nixos/modules/hardware/wooting.nix
blob: 2843dbfd7b2ba486df5bcb2efc642f36c3163a51 (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 "Enable support for Wooting keyboards");

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