summary refs log tree commit diff
path: root/nixos/modules/services/x11/desktop-managers/plasma5.nix
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-01-17 21:46:42 +0300
committerGitHub <noreply@github.com>2023-01-17 21:46:42 +0300
commit860f1b67da8cd35834b4262ab920b23bce4b92b2 (patch)
treecf31d7064a276e2468a7ed5c3e7eec892b64a134 /nixos/modules/services/x11/desktop-managers/plasma5.nix
parente8731b877886461a854ea1310d5dde3ddd358b80 (diff)
parent9a48ce4fb2aaae9febcec4bb8ea76d37b0c18964 (diff)
downloadnixpkgs-860f1b67da8cd35834b4262ab920b23bce4b92b2.tar
nixpkgs-860f1b67da8cd35834b4262ab920b23bce4b92b2.tar.gz
nixpkgs-860f1b67da8cd35834b4262ab920b23bce4b92b2.tar.bz2
nixpkgs-860f1b67da8cd35834b4262ab920b23bce4b92b2.tar.lz
nixpkgs-860f1b67da8cd35834b4262ab920b23bce4b92b2.tar.xz
nixpkgs-860f1b67da8cd35834b4262ab920b23bce4b92b2.tar.zst
nixpkgs-860f1b67da8cd35834b4262ab920b23bce4b92b2.zip
Merge pull request #198287 from K900/kpackage-fix
nixos/plasma5: make kpackage able to resolve dependencies
Diffstat (limited to 'nixos/modules/services/x11/desktop-managers/plasma5.nix')
-rw-r--r--nixos/modules/services/x11/desktop-managers/plasma5.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/plasma5.nix b/nixos/modules/services/x11/desktop-managers/plasma5.nix
index 8270b64787f..b295b9a109b 100644
--- a/nixos/modules/services/x11/desktop-managers/plasma5.nix
+++ b/nixos/modules/services/x11/desktop-managers/plasma5.nix
@@ -401,7 +401,18 @@ in
 
       environment.etc."X11/xkb".source = xcfg.xkbDir;
 
-      environment.sessionVariables.PLASMA_USE_QT_SCALING = mkIf cfg.useQtScaling "1";
+      environment.sessionVariables = {
+        PLASMA_USE_QT_SCALING = mkIf cfg.useQtScaling "1";
+
+        # Needed for things that depend on other store.kde.org packages to install correctly,
+        # notably Plasma look-and-feel packages (a.k.a. Global Themes)
+        #
+        # FIXME: this is annoyingly impure and should really be fixed at source level somehow,
+        # but kpackage is a library so we can't just wrap the one thing invoking it and be done.
+        # This also means things won't work for people not on Plasma, but at least this way it
+        # works for SOME people.
+        KPACKAGE_DEP_RESOLVERS_PATH = "${pkgs.plasma5Packages.frameworkintegration.out}/libexec/kf5/kpackagehandlers";
+      };
 
       # Enable GTK applications to load SVG icons
       services.xserver.gdk-pixbuf.modulePackages = [ pkgs.librsvg ];