mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
nixos/inputmodule: init module
This commit is contained in:
15
nixos/modules/hardware/inputmodule.nix
Normal file
15
nixos/modules/hardware/inputmodule.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user