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

with lib;
let
  cfg = config.hardware.keyboard.teck;
in
{
  options.hardware.keyboard.teck = {
    enable = mkEnableOption (lib.mdDoc "non-root access to the firmware of TECK keyboards");
  };

  config = mkIf cfg.enable {
    services.udev.packages = [ pkgs.teck-udev-rules ];
  };
}