I’ve been experimenting with home-manager for now until I get a good grasp of the nix language so I can finally hop to NixOS, but until then I’m stuck with just home-manager.
I’ve tried to switch some applications I have installed through flatpak to use nix instead, and overall it has been great, except for one program: chatterino2.
Chatterino2 is an application to connect to Twitch chat, but the important part is that it’s latest version uses qt6, and it’s build to use wayland out of the box. The problem is that my system (Nobara linux) is using Gnome 46, and when I open chatterino built from nix packages I get no window decoration.
I have tried a couple of things, which you can see in the issue I created on nixpkgs, but after a lot of little tests (which helped me understand a bit more about the nix language) I’ve come to the conclusion that it’s not a packaging issue, but something missing from my nix installation that makes this happen. I say this because (as you can see on the github issue) I ran chatterino on a live cd and it had window decorations, and when installing from DNF I also get window decorations as well.
Right now I’ve solved my issue temporarily by overriding chatterino as follows
chatterino2-qt5 = prev.chatterino2.overrideAttrs (oldAttrs: {
pname = "chatterino qt5";
src = chatterinoSource;
buildInputs = with pkgs;[
boost
openssl
libsecret
pkg-config
qt5.qtbase
qt6.full
qt5.full
qt5.qtwayland
];
cmakeFlags = [];
});
( qt6.full
and qt5.qtwayland
are not needed. I just put them there to see if it would change anything )
with this chatterino defaults to run on xWayland, so I get window decorations, but when forcing to run on wayland by using environment variables I get no window decorations again.
Something else I’ve tested just now is running protonup-qt, and in the same way, I get no window decoration.
Is there anything I can do, besides what I just did there, to have window decorations working on non-NixOS system with nix packages ?