inputmodule: init inputmodule-control (pkg), init inputmodule (module) (#307293)

This commit is contained in:
Arne Keller 2024-12-13 17:19:11 +01:00 committed by GitHub
commit 7534f2428e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 71 additions and 0 deletions

View file

@ -0,0 +1,15 @@
{
config,
lib,
pkgs,
...
}:
{
options.hardware.inputmodule.enable = lib.mkEnableOption ''Support for Framework input modules'';
config = lib.mkIf config.hardware.inputmodule.enable {
environment.systemPackages = [ pkgs.inputmodule-control ];
services.udev.packages = [ pkgs.inputmodule-control ];
};
}

View file

@ -71,6 +71,7 @@
./hardware/hackrf.nix
./hardware/i2c.nix
./hardware/infiniband.nix
./hardware/inputmodule.nix
./hardware/keyboard/qmk.nix
./hardware/keyboard/teck.nix
./hardware/keyboard/uhk.nix