mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
hardware/keychron: add & enable on thinkman
This commit is contained in:
parent
0ba8d93008
commit
3e93ad2aea
3 changed files with 23 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./keychron
|
||||
./nitrokey
|
||||
./sound
|
||||
./thunderbolt
|
||||
|
|
21
modules/hardware/keychron/default.nix
Normal file
21
modules/hardware/keychron/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue