Skip to content

Commit 3f08237

Browse files
authored
Merge pull request #296607 from Yusuf-Duran/add-iio-hyprland
iio-hyprland: init at 0-unstable-2024-07-24; nixos/iio-hyprland: init module
2 parents c2d5ecc + 2286607 commit 3f08237

File tree

4 files changed

+72
-0
lines changed

4 files changed

+72
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22786,6 +22786,11 @@
2278622786
name = "Yusuf Bera Ertan";
2278722787
keys = [ { fingerprint = "9270 66BD 8125 A45B 4AC4 0326 6180 7181 F60E FCB2"; } ];
2278822788
};
22789+
yusuf-duran = {
22790+
github = "yusuf-duran";
22791+
githubId = 37774475;
22792+
name = "Yusuf Duran";
22793+
};
2278922794
yuu = {
2279022795
email = "yuunix@grrlz.net";
2279122796
matrix = "@yuu:matrix.org";

nixos/modules/module-list.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@
214214
./programs/iay.nix
215215
./programs/iftop.nix
216216
./programs/i3lock.nix
217+
./programs/iio-hyprland.nix
217218
./programs/immersed-vr.nix
218219
./programs/iotop.nix
219220
./programs/java.nix
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
config,
3+
lib,
4+
pkgs,
5+
...
6+
}:
7+
let
8+
cfg = config.programs.iio-hyprland;
9+
in
10+
{
11+
options = {
12+
programs.iio-hyprland = {
13+
enable = lib.mkEnableOption "iio-hyprland and iio-sensor-proxy";
14+
package = lib.mkPackageOption pkgs "iio-hyprland" { };
15+
};
16+
};
17+
18+
config = lib.mkIf cfg.enable {
19+
hardware.sensor.iio.enable = lib.mkDefault true;
20+
21+
environment.systemPackages = [ cfg.package ];
22+
};
23+
meta.maintainers = with lib.maintainers; [ yusuf-duran ];
24+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
unstableGitUpdater,
6+
meson,
7+
cmake,
8+
pkg-config,
9+
dbus,
10+
ninja,
11+
}:
12+
13+
stdenv.mkDerivation {
14+
pname = "iio-hyprland";
15+
version = "0-unstable-2024-07-24";
16+
17+
src = fetchFromGitHub {
18+
owner = "JeanSchoeller";
19+
repo = "iio-hyprland";
20+
rev = "bbf59e10cbf293e64b765864a324e971fcc06125";
21+
hash = "sha256-9tB29tP3ZQ2tU2c+FrWrGqSm70ZrJP8H9WZKzHx55zI=";
22+
};
23+
24+
buildInputs = [ dbus ];
25+
nativeBuildInputs = [
26+
meson
27+
cmake
28+
pkg-config
29+
ninja
30+
];
31+
32+
passthru.updateScript = unstableGitUpdater { };
33+
34+
meta = {
35+
description = "Listens to iio-sensor-proxy and automatically changes Hyprland output orientation";
36+
homepage = "https://github.com/JeanSchoeller/iio-hyprland/tree/master";
37+
license = lib.licenses.gpl3Only;
38+
maintainers = with lib.maintainers; [ yusuf-duran ];
39+
platforms = lib.platforms.linux;
40+
mainProgram = "iio-hyprland";
41+
};
42+
}

0 commit comments

Comments
 (0)