2024-09-07 08:46:55 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
namespace,
|
|
|
|
config,
|
|
|
|
...
|
2025-01-31 01:10:31 +01:00
|
|
|
}:
|
2024-09-07 08:46:55 +02:00
|
|
|
let
|
2025-01-31 01:10:31 +01:00
|
|
|
inherit (lib) mkEnableOption mkIf;
|
2024-09-07 08:46:55 +02:00
|
|
|
cfg = config.${namespace}.common.hardware;
|
|
|
|
in {
|
|
|
|
options.${namespace}.common.hardware = { enable = mkEnableOption "whether to enable common hardware support"; };
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
hardware.sensor.iio.enable = true; # Enable iio-sensor for automatic screen rotation and similar features.
|
|
|
|
hardware.flipperzero.enable = true; # Enable support for the flipperzero device.
|
|
|
|
};
|
|
|
|
}
|