mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
17 lines
303 B
Nix
17 lines
303 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.hardware.keyboard.teck;
|
|
in
|
|
{
|
|
options.hardware.keyboard.teck = {
|
|
enable = mkEnableOption "non-root access to the firmware of TECK keyboards";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.udev.packages = [ pkgs.teck-udev-rules ];
|
|
};
|
|
}
|
|
|