nixos/teck: init

Changed files
+17
nixos
modules
hardware
keyboard
+16
nixos/modules/hardware/keyboard/teck.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 ];
+
};
+
}
+
+1
nixos/modules/module-list.nix
···
./hardware/i2c.nix
./hardware/sensor/hddtemp.nix
./hardware/sensor/iio.nix
+
./hardware/keyboard/teck.nix
./hardware/keyboard/zsa.nix
./hardware/ksm.nix
./hardware/ledger.nix