nixos/hardware: add support for qmk keyboards

Changed files
+17
nixos
modules
hardware
keyboard
+16
nixos/modules/hardware/keyboard/qmk.nix
···
+
{ config, lib, pkgs, ... }:
+
+
let
+
cfg = config.hardware.keyboard.qmk;
+
inherit (lib) mdDoc mkEnableOption mkIf;
+
+
in
+
{
+
options.hardware.keyboard.qmk = {
+
enable = mkEnableOption (mdDoc "non-root access to the firmware of QMK keyboards");
+
};
+
+
config = mkIf cfg.enable {
+
services.udev.packages = [ pkgs.qmk-udev-rules ];
+
};
+
}
+1
nixos/modules/module-list.nix
···
./hardware/gpgsmartcards.nix
./hardware/hackrf.nix
./hardware/i2c.nix
+
./hardware/keyboard/qmk.nix
./hardware/keyboard/teck.nix
./hardware/keyboard/uhk.nix
./hardware/keyboard/zsa.nix