summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@gmail.com>2015-12-12 14:32:47 -0600
committerThomas Tuegel <ttuegel@gmail.com>2015-12-12 14:35:10 -0600
commitd6e3a8e921040dedba39adb4ba047465284d6d7b (patch)
tree100c57dc287059d1b698020f4f66be907878bcbc /nixos/modules
parent6a4b71afa55616894cee6d9cc8b448fd22d2463b (diff)
downloadnixlib-d6e3a8e921040dedba39adb4ba047465284d6d7b.tar
nixlib-d6e3a8e921040dedba39adb4ba047465284d6d7b.tar.gz
nixlib-d6e3a8e921040dedba39adb4ba047465284d6d7b.tar.bz2
nixlib-d6e3a8e921040dedba39adb4ba047465284d6d7b.tar.lz
nixlib-d6e3a8e921040dedba39adb4ba047465284d6d7b.tar.xz
nixlib-d6e3a8e921040dedba39adb4ba047465284d6d7b.tar.zst
nixlib-d6e3a8e921040dedba39adb4ba047465284d6d7b.zip
nixos/kde5: enable SVG icons in GTK programs
Fixes #10758.
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/x11/desktop-managers/kde5.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/kde5.nix b/nixos/modules/services/x11/desktop-managers/kde5.nix
index 0f3cb5735e75..06fc622325f7 100644
--- a/nixos/modules/services/x11/desktop-managers/kde5.nix
+++ b/nixos/modules/services/x11/desktop-managers/kde5.nix
@@ -166,6 +166,11 @@ in
         GST_PLUGIN_SYSTEM_PATH_1_0 = [ "/lib/gstreamer-1.0" ];
       };
 
+    # Enable GTK applications to load SVG icons
+    environment.variables = mkIf (lib.hasAttr "breeze-icons" kf5) {
+      GDK_PIXBUF_MODULE_FILE = "${pkgs.librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache";
+    };
+
     fonts.fonts = [ (plasma5.oxygen-fonts or pkgs.noto-fonts) ];
 
     programs.ssh.askPassword = "${plasma5.ksshaskpass}/bin/ksshaskpass";