nixos/plasma6: fix autorotation when IIO module is enabled

Plasma 6 requires the `qtsensors` package to be installed in order
for autorotation to work correctly. Simply enabling the IIO module
is not sufficient, although it's also required. Both are required
for autorotation to work correctly.

(cherry picked from commit 864ffcd1e1)
This commit is contained in:
Kermina Awad
2025-07-01 11:22:52 -04:00
committed by github-actions[bot]
parent 4978f362d3
commit b61c9eb6c1

View File

@@ -173,6 +173,10 @@ in
krdp
xwaylandvideobridge # exposes Wayland windows to X11 screen capture
]
++ lib.optionals config.hardware.sensor.iio.enable [
# This is required for autorotation in Plasma 6
qtsensors
]
++ lib.optionals config.services.flatpak.enable [
# Since PackageKit Nix support is not there yet,
# only install discover if flatpak is enabled.