mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-01-19 02:13:06 +01:00
Jo
57d067d501
feat: WIP add "absolutesolver" system and "cyn" user *wink wink* refactor: clean up some comments and remove empty lines
17 lines
486 B
Nix
17 lines
486 B
Nix
{
|
|
lib,
|
|
inputs,
|
|
namespace,
|
|
config,
|
|
...
|
|
}: with lib; with lib.${namespace};
|
|
let
|
|
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.
|
|
};
|
|
}
|