2021-04-19 13:57:32 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.hardware.keyboard.teck;
|
2023-02-15 04:34:22 +01:00
|
|
|
inherit (lib) mdDoc mkEnableOption mkIf;
|
|
|
|
|
2021-04-19 13:57:32 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options.hardware.keyboard.teck = {
|
2023-02-15 04:34:22 +01:00
|
|
|
enable = mkEnableOption (mdDoc "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 ];
|
|
|
|
};
|
|
|
|
}
|