From 200bbb070b80ab8bcbe591a21373c24fb77867ba Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 14 Jun 2018 17:28:48 -0700 Subject: [PATCH] [NixOS] Set GDK_PIXBUF_MODULE_FILE explicitly --- nixos/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 7f77237c..5125c63a 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -135,6 +135,10 @@ in transmission-gtk ]; + environment.variables = { + GDK_PIXBUF_MODULE_FILE = "${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"; + }; + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; @@ -190,6 +194,9 @@ in sddm = { enable = true; }; + sessionCommands = '' + systemctl --user import-environment GDK_PIXBUF_MODULE_FILE + ''; }; };