puzzlevision/modules/nixos/common/hardware/default.nix
Jo e1bbf4856e refactor: clean up unused imports
refactor: remove some comments
feat: set VSCodium color scheme to Catppuccin Macchiato
2024-12-03 18:38:19 +01:00

16 lines
476 B
Nix

{
lib,
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.
};
}