mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
17 lines
344 B
Nix
17 lines
344 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.hardware.keyboard.teck;
|
|
inherit (lib) mdDoc mkEnableOption mkIf;
|
|
|
|
in
|
|
{
|
|
options.hardware.keyboard.teck = {
|
|
enable = mkEnableOption (mdDoc "non-root access to the firmware of TECK keyboards");
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.udev.packages = [ pkgs.teck-udev-rules ];
|
|
};
|
|
}
|