> <@matthewcroughan:defenestrate.it> In my home-manager config, I do the following: > ```nix > qt = { > enable = true; > platformTheme = "gnome"; > style = { > name = "adwaita-dark"; > package = pkgs.adwaita-qt; > }; > }; > ``` > > This is supposed to set up `QT_` variables. The following lines of Nix in `qt,nix` from home-manager do it: > https://github.com/nix-community/home-manager/blob/master/modules/misc/qt.nix#L99-L102 > > This qt.nix uses `home.sessionVariables` to accomplish it, which puts the following in ~/.profile: > `. "/etc/profiles/per-user/matthew/etc/profile.d/hm-session-vars.sh"` > > Then, `hm-session-vars.sh` has the following in it: > ``` > export QT_QPA_PLATFORMTHEME="gnome" > export QT_STYLE_OVERRIDE="adwaita-dark" > ``` > > The problem is that nothing is sourcing ~/.profile. `gdm` won't, `sddm` won't. So it never works out. > > Instead of `sway` I need to `bash -l -c sway`, then it'll source my `~/.profile` regardless, as mentioned in https://github.com/swaywm/sway/issues/3109 I think I had similar issues. I needed to add 'exec ${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1' to the config. But I was using polkit anyway. Though that seemed to fix my sourcing problems.