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

@ -7,6 +7,7 @@
services.tlp.enable = true;
my.hardware = {
keychron.enable = true;
nitrokey.enable = true;
sound.enable = true;
thunderbolt.enable = true;

View file

@ -3,6 +3,7 @@
{
imports = [
./keychron
./nitrokey
./sound
./thunderbolt

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
];
};
}