0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

Merge pull request #296607 from Yusuf-Duran/add-iio-hyprland

iio-hyprland: init at 0-unstable-2024-07-24; nixos/iio-hyprland: init module
This commit is contained in:
Masum Reza 2024-08-18 17:19:20 +05:30 committed by GitHub
commit 3f08237ceb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 72 additions and 0 deletions

View file

@ -214,6 +214,7 @@
./programs/iay.nix
./programs/iftop.nix
./programs/i3lock.nix
./programs/iio-hyprland.nix
./programs/immersed-vr.nix
./programs/iotop.nix
./programs/java.nix

View file

@ -0,0 +1,24 @@
{
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 ];
}