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
|
@ -7,6 +7,7 @@
|
||||||
services.tlp.enable = true;
|
services.tlp.enable = true;
|
||||||
|
|
||||||
my.hardware = {
|
my.hardware = {
|
||||||
|
keychron.enable = true;
|
||||||
nitrokey.enable = true;
|
nitrokey.enable = true;
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
thunderbolt.enable = true;
|
thunderbolt.enable = true;
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./keychron
|
||||||
./nitrokey
|
./nitrokey
|
||||||
./sound
|
./sound
|
||||||
./thunderbolt
|
./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