about summary refs log tree commit diff
path: root/nixpkgs/nixos/modules/hardware/keyboard/teck.nix
blob: 8cb736dedac45dc83588bfc141e9548a661fa853 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ config, lib, pkgs, ... }:

let
  cfg = config.hardware.keyboard.teck;
  inherit (lib) mkEnableOption mkIf;

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 ];
  };
}