nixos/modules/hardware/keychron/default.nix
Felix Buehler 04bc5181ff
Some checks are pending
/ Build Nix targets (push) Waiting to run
hardware/keychron: fix keyboard detection
2025-12-27 17:14:00 +01:00

30 lines
443 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.hardware.keychron;
in
{
options.my.hardware.keychron = {
enable = lib.mkEnableOption "keychron configuration";
};
config = lib.mkIf cfg.enable {
hardware.keyboard.qmk = {
enable = true;
keychronSupport = true;
};
services.udev.packages = with pkgs; [
via
];
environment.systemPackages = with pkgs; [
qmk
via
];
};
}