···11{ config, lib, pkgs, ... }:
2233-with lib;
43let
54 cfg = config.hardware.keyboard.uhk;
55+ inherit (lib) mdDoc mkEnableOption mkIf;
66+67in
78{
89 options.hardware.keyboard.uhk = {
99- enable = mkEnableOption (lib.mdDoc ''
1010- non-root access to the firmware of UHK keyboards.
1010+ enable = mkEnableOption (mdDoc ''
1111+ non-root access to the firmware of UHK keyboards.
1112 You need it when you want to flash a new firmware on the keyboard.
1213 Access to the keyboard is granted to users in the "input" group.
1314 You may want to install the uhk-agent package.
+8-11
nixos/modules/hardware/keyboard/zsa.nix
···11{ config, lib, pkgs, ... }:
2233let
44- inherit (lib) mkOption mkIf types;
54 cfg = config.hardware.keyboard.zsa;
55+ inherit (lib) mkEnableOption mkIf mdDoc;
66+67in
78{
89 options.hardware.keyboard.zsa = {
99- enable = mkOption {
1010- type = types.bool;
1111- default = false;
1212- description = lib.mdDoc ''
1313- Enables udev rules for keyboards from ZSA like the ErgoDox EZ, Planck EZ and Moonlander Mark I.
1414- You need it when you want to flash a new configuration on the keyboard
1515- or use their live training in the browser.
1616- You may want to install the wally-cli package.
1717- '';
1818- };
1010+ enable = mkEnableOption (mdDoc ''
1111+ udev rules for keyboards from ZSA like the ErgoDox EZ, Planck EZ and Moonlander Mark I.
1212+ You need it when you want to flash a new configuration on the keyboard
1313+ or use their live training in the browser.
1414+ You may want to install the wally-cli package.
1515+ '');
1916 };
20172118 config = mkIf cfg.enable {