2021-04-19 13:57:32 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.hardware.keyboard.teck;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.hardware.keyboard.teck = {
|
2022-08-28 21:18:44 +02:00
|
|
|
enable = mkEnableOption (lib.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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|