mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
nixos/inputmodule: init module
This commit is contained in:
parent
bcab2a1246
commit
6cc454478d
2 changed files with 16 additions and 0 deletions
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/hackrf.nix
|
||||||
./hardware/i2c.nix
|
./hardware/i2c.nix
|
||||||
./hardware/infiniband.nix
|
./hardware/infiniband.nix
|
||||||
|
./hardware/inputmodule.nix
|
||||||
./hardware/keyboard/qmk.nix
|
./hardware/keyboard/qmk.nix
|
||||||
./hardware/keyboard/teck.nix
|
./hardware/keyboard/teck.nix
|
||||||
./hardware/keyboard/uhk.nix
|
./hardware/keyboard/uhk.nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue