main
 1{lib, ...}: {
 2  den.aspects.desktop.style.qt = {
 3    nixos = {
 4      qt = {
 5        enable = true;
 6        platformTheme = "qt5ct";
 7      };
 8    };
 9
10    homeManager = {
11      qt = {
12        enable = true;
13        platformTheme.name = "qtct";
14      };
15    };
16  };
17
18  den.aspects.desktop.style.qt.themes = {
19    catppuccin = {
20      homeManager = {pkgs, ...}: {
21        qt = lib.genAttrs' ["qt5ct" "qt6ct"] (s:
22          lib.nameValuePair "${s}Settings" {
23            Appearance = {
24              custom_palette = true;
25              color_scheme_path = "${pkgs.catppuccin-qt5ct}/share/${s}/colors/catppuccin-mocha-mauve.conf";
26            };
27          });
28      };
29    };
30  };
31}