[Desktop/Plasma] Fix icon theme (esp. when using Wayland)

This commit is contained in:
Antoine Viallon 2023-05-14 22:48:30 +02:00
parent 38cad649bf
commit 1c1ecd078d
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -101,12 +101,24 @@ in {
aviallon.desktop.browser.firefox.overrides.enablePlasmaBrowserIntegration = true; aviallon.desktop.browser.firefox.overrides.enablePlasmaBrowserIntegration = true;
environment.profileRelativeSessionVariables = {
QT_PLUGIN_PATH = mkForce []; # Remove as it causes many issues when pulling one package from nixos-unstable
};
xdg.portal = { xdg.portal.enable = mkDefault true;
enable = mkDefault true; xdg.icons.enable = true;
systemd.user.services.setup-xdg-cursors = mkIf config.xdg.icons.enable {
script = ''
[ -d "$HOME/.icons/default" ] || mkdir -p "$HOME/.icons/default"
cat >"$HOME/.icons/default/index.theme" <<EOF
[icon theme]
Inherits=''${XCURSOR_THEME:-breeze_cursors}
EOF
'';
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
};
wantedBy = [ "graphical-session-pre.target" ];
partOf = [ "graphical-session-pre.target" ];
}; };
}; };