Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
24 lines
476 B
Nix
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 ];
|
|
}
|