nichts/modules/style/qt.nix

23 lines
403 B
Nix
Raw Normal View History

2024-05-22 14:29:45 +02:00
{
config,
lib,
pkgs,
...
}:
with lib; let
theme = {
package = pkgs.gruvbox-gtk-theme;
name = "Gruvbox-Dark-BL";
};
2024-08-16 23:31:12 +02:00
cfg = config.modules.usrEnv.style.qt;
2024-04-10 17:39:26 +02:00
in {
config = mkIf cfg.enable {
2024-05-22 14:29:45 +02:00
environment.sessionVariables = {QT_QPA_PLATFORMTHEME = "qt5ct";};
environment.variables = {
QT_STYLE_OVERRIDE = lib.mkForce "kvantum";
GTK_THEME = theme.name;
};
};
2024-04-10 17:39:26 +02:00
}