From 471e42794cbdd1b60d2b6e72201e49caf4b25ae2 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Wed, 23 Nov 2022 21:06:31 -0500 Subject: [PATCH 1/2] nixos/plasma5: Add iio sensors proxy for Plasma Mobile This makes autorotate actually work. --- nixos/modules/services/x11/desktop-managers/plasma5.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/x11/desktop-managers/plasma5.nix b/nixos/modules/services/x11/desktop-managers/plasma5.nix index a6ab3053087c..f32625fb60fc 100644 --- a/nixos/modules/services/x11/desktop-managers/plasma5.nix +++ b/nixos/modules/services/x11/desktop-managers/plasma5.nix @@ -577,6 +577,8 @@ in hardware.bluetooth.enable = true; hardware.pulseaudio.enable = true; networking.networkmanager.enable = true; + # Required for autorotate + hardware.sensor.iio.enable = lib.mkDefault true; # Recommendations can be found here: # - https://invent.kde.org/plasma-mobile/plasma-phone-settings/-/tree/master/etc/xdg From 04568a04cebd20cdad199cc6f96c0762e677e3cb Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Wed, 23 Nov 2022 21:07:17 -0500 Subject: [PATCH 2/2] plasma-mobile: Add kirigami-addons dependency This dependency is not verified at build time. With it missing, the shell seemed to work, except the KCM and the desktop configuration panels were empty. --- pkgs/desktops/plasma-5/plasma-mobile/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/desktops/plasma-5/plasma-mobile/default.nix b/pkgs/desktops/plasma-5/plasma-mobile/default.nix index ce0da404bb59..22ea8bf78252 100644 --- a/pkgs/desktops/plasma-5/plasma-mobile/default.nix +++ b/pkgs/desktops/plasma-5/plasma-mobile/default.nix @@ -16,6 +16,7 @@ , kconfig , krunner , kinit +, kirigami-addons , kwayland , kwin , plasma-framework @@ -50,6 +51,7 @@ mkDerivation { kconfig krunner kinit + kirigami-addons kwayland kwin plasma-framework