mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
12 lines
381 B
Nix
12 lines
381 B
Nix
{ 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 ];
|
|
};
|
|
}
|