Skip to content

Commit

Permalink
nixos/inputmodule: init module
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitt3120 committed Oct 2, 2024
1 parent 0699004 commit 737196b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions nixos/modules/hardware/inputmodule.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,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
Expand Down

0 comments on commit 737196b

Please sign in to comment.