mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-21 00:49:27 +03:00
nixos/teck: init
This commit is contained in:
parent
3c0e1f309f
commit
10d375bde1
2 changed files with 17 additions and 0 deletions
16
nixos/modules/hardware/keyboard/teck.nix
Normal file
16
nixos/modules/hardware/keyboard/teck.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.hardware.keyboard.teck;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.hardware.keyboard.teck = {
|
||||||
|
enable = mkEnableOption "non-root access to the firmware of TECK keyboards";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.udev.packages = [ pkgs.teck-udev-rules ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
./hardware/i2c.nix
|
./hardware/i2c.nix
|
||||||
./hardware/sensor/hddtemp.nix
|
./hardware/sensor/hddtemp.nix
|
||||||
./hardware/sensor/iio.nix
|
./hardware/sensor/iio.nix
|
||||||
|
./hardware/keyboard/teck.nix
|
||||||
./hardware/keyboard/zsa.nix
|
./hardware/keyboard/zsa.nix
|
||||||
./hardware/ksm.nix
|
./hardware/ksm.nix
|
||||||
./hardware/ledger.nix
|
./hardware/ledger.nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue