···1{ config, lib, pkgs, ... }:
23-with lib;
4let
5 cfg = config.hardware.keyboard.uhk;
006in
7{
8 options.hardware.keyboard.uhk = {
9- enable = mkEnableOption (lib.mdDoc ''
10- non-root access to the firmware of UHK keyboards.
11 You need it when you want to flash a new firmware on the keyboard.
12 Access to the keyboard is granted to users in the "input" group.
13 You may want to install the uhk-agent package.
···1{ config, lib, pkgs, ... }:
203let
4 cfg = config.hardware.keyboard.uhk;
5+ inherit (lib) mdDoc mkEnableOption mkIf;
6+7in
8{
9 options.hardware.keyboard.uhk = {
10+ enable = mkEnableOption (mdDoc ''
11+ non-root access to the firmware of UHK keyboards.
12 You need it when you want to flash a new firmware on the keyboard.
13 Access to the keyboard is granted to users in the "input" group.
14 You may want to install the uhk-agent package.
+8-11
nixos/modules/hardware/keyboard/zsa.nix
···1{ config, lib, pkgs, ... }:
23let
4- inherit (lib) mkOption mkIf types;
5 cfg = config.hardware.keyboard.zsa;
006in
7{
8 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- };
19 };
2021 config = mkIf cfg.enable {
···1{ config, lib, pkgs, ... }:
23let
04 cfg = config.hardware.keyboard.zsa;
5+ inherit (lib) mkEnableOption mkIf mdDoc;
6+7in
8{
9 options.hardware.keyboard.zsa = {
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+ '');
000016 };
1718 config = mkIf cfg.enable {