hardware/keychron: add & enable on thinkman

This commit is contained in:
Felix Buehler 2023-01-08 00:52:00 +01:00
parent 0ba8d93008
commit 3e93ad2aea
3 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{ config, lib, pkgs, ... }:
let
cfg = config.my.hardware.keychron;
in
{
options.my.hardware.keychron = {
enable = lib.mkEnableOption "keychron configuration";
};
config = lib.mkIf cfg.enable {
services.udev.packages = with pkgs; [
qmk-udev-rules
via
];
environment.systemPackages = with pkgs; [
qmk
via
];
};
}