{ lib, config, ... }: let font = "${config.theme.font.regular},10"; qtctConf = lib.generators.toINI {} { Appearance = { custom_palette = false; icon_theme = config.gtk.iconTheme.name; standard_dialogs = "xdgdesktopportal"; style = "gtk2"; }; Fonts = { fixed = font; general = font; }; }; in { qt = { enable = true; platformTheme.name = "qtct"; style.name = "gtk2"; }; xdg.configFile = { "qt5ct/qt5ct.conf".text = qtctConf; "qt6ct/qt6ct.conf".text = qtctConf; }; }