summary refs log tree commit diff
path: root/nixos/modules/hardware/keyboard/teck.nix
blob: 8376c6b9c50b2f869ff2cfa0db35a6bf5fb6595f (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) 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 ];
  };
}