nixos/teck: init
commit10d375bde1b80f6097e68c25cba98d1f930d7c66
authorLouis Bettens <louis@bettens.info>
dateMon 19 Apr 2021, 13:57 (6 years ago)
parent3c0e1f3
nixos/modules/hardware/keyboard/teck.nixnew file+16
@@ -0,0 +1,16 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+let
5+ cfg = config.hardware.keyboard.teck;
6+in
7+{
8+ options.hardware.keyboard.teck = {
9+ enable = mkEnableOption "non-root access to the firmware of TECK keyboards";
10+ };
11+
12+ config = mkIf cfg.enable {
13+ services.udev.packages = [ pkgs.teck-udev-rules ];
14+ };
15+}
16+
nixos/modules/module-list.nix+1
@@ -49,6 +49,7 @@
4949 ./hardware/i2c.nix
5050 ./hardware/sensor/hddtemp.nix
5151 ./hardware/sensor/iio.nix
52+ ./hardware/keyboard/teck.nix
5253 ./hardware/keyboard/zsa.nix
5354 ./hardware/ksm.nix
5455 ./hardware/ledger.nix