2021-04-22 02:08:21 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.hardware.keyboard.teck;
|
2024-04-21 15:54:59 +00:00
|
|
|
inherit (lib) mkEnableOption mkIf;
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options.hardware.keyboard.teck = {
|
2024-04-21 15:54:59 +00:00
|
|
|
enable = mkEnableOption "non-root access to the firmware of TECK keyboards";
|
2021-04-22 02:08:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.udev.packages = [ pkgs.teck-udev-rules ];
|
|
|
|
};
|
|
|
|
}
|