nixos/hardware: add support for qmk keyboards
This commit is contained in:
parent
774254a723
commit
2a97c0d985
16
nixos/modules/hardware/keyboard/qmk.nix
Normal file
16
nixos/modules/hardware/keyboard/qmk.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -58,6 +58,7 @@
|
||||||
./hardware/gpgsmartcards.nix
|
./hardware/gpgsmartcards.nix
|
||||||
./hardware/hackrf.nix
|
./hardware/hackrf.nix
|
||||||
./hardware/i2c.nix
|
./hardware/i2c.nix
|
||||||
|
./hardware/keyboard/qmk.nix
|
||||||
./hardware/keyboard/teck.nix
|
./hardware/keyboard/teck.nix
|
||||||
./hardware/keyboard/uhk.nix
|
./hardware/keyboard/uhk.nix
|
||||||
./hardware/keyboard/zsa.nix
|
./hardware/keyboard/zsa.nix
|
||||||
|
|
Loading…
Reference in a new issue