summary refs log tree commit diff
path: root/nixos/modules/hardware/keyboard/teck.nix
blob: 091ddb81962e625cab11e4f3dc835ba4bb4c81ac (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 "non-root access to the firmware of TECK keyboards";
  };

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