27 lines
598 B
Nix
27 lines
598 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
# Enable GTK and Qt theming
|
|
programs.gtk.enable = true;
|
|
programs.qt.enable = true;
|
|
|
|
# Install the Adwaita icon theme
|
|
environment.systemPackages = with pkgs; [
|
|
adwaita-icon-theme
|
|
];
|
|
|
|
# Set GTK theme and icon theme via environment variables
|
|
environment.sessionVariables = {
|
|
GTK_THEME = "Adwaita:dark";
|
|
GTK_ICON_THEME = "Adwaita";
|
|
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";
|
|
'';
|
|
}
|