Merge pull request #216430 from peterhoeg/m/qmk

authored by

Bernardo Meurer and committed by
GitHub
ef9030a3 af0078a3

+32 -17
+16
nixos/modules/hardware/keyboard/qmk.nix
··· 1 + { config, lib, pkgs, ... }: 2 + 3 + let 4 + cfg = config.hardware.keyboard.qmk; 5 + inherit (lib) mdDoc mkEnableOption mkIf; 6 + 7 + in 8 + { 9 + options.hardware.keyboard.qmk = { 10 + enable = mkEnableOption (mdDoc "non-root access to the firmware of QMK keyboards"); 11 + }; 12 + 13 + config = mkIf cfg.enable { 14 + services.udev.packages = [ pkgs.qmk-udev-rules ]; 15 + }; 16 + }
+3 -3
nixos/modules/hardware/keyboard/teck.nix
··· 1 1 { config, lib, pkgs, ... }: 2 2 3 - with lib; 4 3 let 5 4 cfg = config.hardware.keyboard.teck; 5 + inherit (lib) mdDoc mkEnableOption mkIf; 6 + 6 7 in 7 8 { 8 9 options.hardware.keyboard.teck = { 9 - enable = mkEnableOption (lib.mdDoc "non-root access to the firmware of TECK keyboards"); 10 + enable = mkEnableOption (mdDoc "non-root access to the firmware of TECK keyboards"); 10 11 }; 11 12 12 13 config = mkIf cfg.enable { 13 14 services.udev.packages = [ pkgs.teck-udev-rules ]; 14 15 }; 15 16 } 16 -
+4 -3
nixos/modules/hardware/keyboard/uhk.nix
··· 1 1 { config, lib, pkgs, ... }: 2 2 3 - with lib; 4 3 let 5 4 cfg = config.hardware.keyboard.uhk; 5 + inherit (lib) mdDoc mkEnableOption mkIf; 6 + 6 7 in 7 8 { 8 9 options.hardware.keyboard.uhk = { 9 - enable = mkEnableOption (lib.mdDoc '' 10 - non-root access to the firmware of UHK keyboards. 10 + enable = mkEnableOption (mdDoc '' 11 + non-root access to the firmware of UHK keyboards. 11 12 You need it when you want to flash a new firmware on the keyboard. 12 13 Access to the keyboard is granted to users in the "input" group. 13 14 You may want to install the uhk-agent package.
+8 -11
nixos/modules/hardware/keyboard/zsa.nix
··· 1 1 { config, lib, pkgs, ... }: 2 2 3 3 let 4 - inherit (lib) mkOption mkIf types; 5 4 cfg = config.hardware.keyboard.zsa; 5 + inherit (lib) mkEnableOption mkIf mdDoc; 6 + 6 7 in 7 8 { 8 9 options.hardware.keyboard.zsa = { 9 - enable = mkOption { 10 - type = types.bool; 11 - default = false; 12 - description = lib.mdDoc '' 13 - Enables udev rules for keyboards from ZSA like the ErgoDox EZ, Planck EZ and Moonlander Mark I. 14 - You need it when you want to flash a new configuration on the keyboard 15 - or use their live training in the browser. 16 - You may want to install the wally-cli package. 17 - ''; 18 - }; 10 + enable = mkEnableOption (mdDoc '' 11 + udev rules for keyboards from ZSA like the ErgoDox EZ, Planck EZ and Moonlander Mark I. 12 + You need it when you want to flash a new configuration on the keyboard 13 + or use their live training in the browser. 14 + You may want to install the wally-cli package. 15 + ''); 19 16 }; 20 17 21 18 config = mkIf cfg.enable {
+1
nixos/modules/module-list.nix
··· 59 59 ./hardware/gpgsmartcards.nix 60 60 ./hardware/hackrf.nix 61 61 ./hardware/i2c.nix 62 + ./hardware/keyboard/qmk.nix 62 63 ./hardware/keyboard/teck.nix 63 64 ./hardware/keyboard/uhk.nix 64 65 ./hardware/keyboard/zsa.nix