{ config, pkgs, ... }: { # Enable GTK and Qt theming programs.gtk.enable = true; programs.qt.enable = true; # Set a dark GTK theme (e.g., Adwaita-dark) environment.systemPackages = with pkgs; [ adwaita-icon-theme ]; # GTK icon theme gtk.iconTheme = { name = "Adwaita"; package = pkgs.adwaita-icon-theme; }; # Set GTK theme via environment variable environment.sessionVariables = { GTK_THEME = "Adwaita:dark"; QT_STYLE_OVERRIDE = "gtk2"; QT_QPA_PLATFORMTHEME = "gtk2"; }; # For Qt5/Qt6 apps environment.etc."xdg/qt5ct/qss/qt5ct.qss".text = '' /* Set dark palette for Qt5 apps */ @import "dark"; ''; }