summaryrefslogtreecommitdiffstats
path: root/nixos/modules/hardware/inputmodule.nix
blob: edef0d15e715fcd72af1e16f5b7a35fc9c9bc23f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 ];
  };
}