mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
nixos/iio-hyprland: init module
This commit is contained in:
parent
b523a839fd
commit
228660743a
2 changed files with 25 additions and 0 deletions
|
@ -214,6 +214,7 @@
|
||||||
./programs/iay.nix
|
./programs/iay.nix
|
||||||
./programs/iftop.nix
|
./programs/iftop.nix
|
||||||
./programs/i3lock.nix
|
./programs/i3lock.nix
|
||||||
|
./programs/iio-hyprland.nix
|
||||||
./programs/immersed-vr.nix
|
./programs/immersed-vr.nix
|
||||||
./programs/iotop.nix
|
./programs/iotop.nix
|
||||||
./programs/java.nix
|
./programs/java.nix
|
||||||
|
|
24
nixos/modules/programs/iio-hyprland.nix
Normal file
24
nixos/modules/programs/iio-hyprland.nix
Normal 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 ];
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue