1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-23 01:41:05 +03:00
nixpkgs/nixos/modules/hardware/keyboard/teck.nix

22 lines
338 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}:
2021-04-19 13:57:32 +02:00
let
cfg = config.hardware.keyboard.teck;
inherit (lib) mkEnableOption mkIf;
2021-04-19 13:57:32 +02:00
in
{
options.hardware.keyboard.teck = {
enable = mkEnableOption "non-root access to the firmware of TECK keyboards";
2021-04-19 13:57:32 +02:00
};
config = mkIf cfg.enable {
services.udev.packages = [ pkgs.teck-udev-rules ];
};
}