I’m using NixOS with home-manager without any desktop environment, just niri wm and need to set some simple dark theme which works across all applications.
I’ve done kernel driver development and os image building with / on tmpfs for embedded devices with Nix and other crazy things but nothing proved to be harder for me than setting a simple dark theme which would work across majority of GUI applications. I’ve been more or less ignoring this problem for many years because every time I tried to solve it I failed but it’s been constantly bugging me every day. Now it’s time to ask for help.
Right now I have:
gtk = {
enable = true;
theme = {
name = "Adwaita-dark";
package = pkgs.gnome-themes-extra;
};
gtk3.extraConfig.gtk-application-prefer-dark-theme = 1;
gtk4.extraConfig.gtk-application-prefer-dark-theme = 1;
};
qt = {
enable = true;
style = {
name = "adwaita-dark";
};
};
in my home
settings with following results:
- VSCodium is dark
- Okular is light but with random dark ui elements!
- gnome-disks (executed as user, I’m well aware that sudo without additional settings/params like doesn’t preserve env) is completely light threatening to blind me.
What is the most simple and the most non-hacky way (do one really need to play with dconf like some google search results suggest?) short of going all out and using Stylix? Thanks.