depot/third_party/nixpkgs/nixos/modules/programs/iio-hyprland.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

24 lines
476 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.iio-hyprland;
in
{
options = {
programs.iio-hyprland = {
enable = lib.mkEnableOption "iio-hyprland and iio-sensor-proxy";
package = lib.mkPackageOption pkgs "iio-hyprland" { };
};
};
config = lib.mkIf cfg.enable {
hardware.sensor.iio.enable = lib.mkDefault true;
environment.systemPackages = [ cfg.package ];
};
meta.maintainers = with lib.maintainers; [ yusuf-duran ];
}