diff --git a/common/home.nix b/common/home.nix index 47cc482..e9a7b0a 100644 --- a/common/home.nix +++ b/common/home.nix @@ -82,12 +82,15 @@ in ''; }; preferXdgDirectories = true; - sessionVariables = + sessionVariables = lib.mkMerge [ { EDITOR = "nvim"; TERM = "kitty"; } - // lib.mkIf enableGraphical { + lib.mkIf + enableGraphical + { + DISPLAY = ":0"; GDK_BACKEND = "wayland,x11"; QT_QPA_PLATFORM = "wayland;xcb"; CLUTTER_BACKEND = "wayland"; @@ -95,7 +98,8 @@ in XDG_SESSION_TYPE = "wayland"; XDG_SESSION_DESKTOP = "niri"; WLR_NO_HARDWARE_CURSORS = "1"; - }; + } + ]; stateVersion = "23.11"; # Do not change :3 username = me.nickname; }; diff --git a/hosts/muos/configuration.nix b/hosts/muos/configuration.nix index 9e96c52..cf53d8d 100644 --- a/hosts/muos/configuration.nix +++ b/hosts/muos/configuration.nix @@ -170,7 +170,10 @@ appbar = "${pkgs.waybar}/bin/waybar"; extra = "spawn-at-startup \"" - + lib.strings.concatStringsSep "\nspawn-at-startup \"" [ "${pkgs.dunst}/bin/dunst\"" ]; + + lib.strings.concatStringsSep "\nspawn-at-startup \"" [ + "${pkgs.dunst}/bin/dunst\"" + "${pkgs.xwayland-satellite}/bin/xwayland-satellite\"" + ]; }; }; };