{ inputs, config, lib, pkgs, ... }: with lib; with lib.my; let cfg = config.modules.desktop.themes.qt; in { options.modules.desktop.themes.qt = { enable = mkBoolOpt false; }; config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ libsForQt5.qt5.qtquickcontrols2 libsForQt5.qt5.qtgraphicaleffects ]; home-manager.users.${config.user.name} = { qt = { enable = true; platformTheme = "gtk"; style = { name = "adwaita-dark"; package = pkgs.unstable.adwaita-qt; }; }; }; }; }