1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Fix okular issue in wayland

Add workaround to use xwayland compat mode instead of the wayland implementation
This commit is contained in:
Stefan Ellmauthaler 2022-10-24 17:16:28 +02:00
parent d5d1a16d17
commit 0b5fe07122
Failed to extract signature

View File

@ -27,6 +27,16 @@ with lib; {
cfg = config.elss.graphical; cfg = config.elss.graphical;
#cursorsize = if config.variables.hostName == "nucturne" then 14 else 16; #cursorsize = if config.variables.hostName == "nucturne" then 14 else 16;
#xserverDPI = if config.variables.hostName == "stel-xps" then 180 else null; #xserverDPI = if config.variables.hostName == "stel-xps" then 180 else null;
okular-x11 = pkgs.symlinkJoin {
name = "okular";
paths = [pkgs.okular];
buildInputs = [pkgs.makeWrapper];
postBuild = ''
wrapProgram $out/bin/okular \
--set QT_QPA_PLATFORM xcb
'';
};
in in
mkIf cfg.enable { mkIf cfg.enable {
elss.users.x11.enable = elss.users.x11.enable =
@ -75,7 +85,8 @@ with lib; {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
ungoogled-chromium ungoogled-chromium
okular # force okular to use xwayland, because of https://github.com/swaywm/sway/issues/4973
okular-x11
texlive.combined.scheme-full texlive.combined.scheme-full
usbutils usbutils
keepassxc keepassxc