1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6 meta.maintainers = [ maintainers.romildo ];
7
8 ###### interface
9 options = {
10 programs.qt5ct = {
11 enable = mkOption {
12 default = false;
13 type = types.bool;
14 description = ''
15 Whether to enable the Qt5 Configuration Tool (qt5ct), a
16 program that allows users to configure Qt5 settings (theme,
17 font, icons, etc.) under desktop environments or window
18 manager without Qt integration.
19
20 Official home page: <link xlink:href="https://sourceforge.net/projects/qt5ct/">https://sourceforge.net/projects/qt5ct/</link>
21 '';
22 };
23 };
24 };
25
26 ###### implementation
27 config = mkIf config.programs.qt5ct.enable {
28 environment.variables.QT_QPA_PLATFORMTHEME = "qt5ct";
29 environment.systemPackages = with pkgs; [ qt5ct libsForQt5.qtstyleplugins ];
30 };
31}