{ lib, config, inputs, ... }: let inherit (lib) mkEnableOption mkIf; cfg = config.marleyos.appearance.qt; inherit (config.marleyos.theme) colors; in { options.marleyos.appearance.qt.enable = mkEnableOption "qt"; config = mkIf cfg.enable { xdg.configFile = mkIf (colors.base == "rose-pine") { "qt5ct/colors/rose-pine.conf" = { source = "${inputs.rose-pine-qt5ct}/rose-pine.conf"; }; }; qt = { enable = true; style.name = "adwaita"; }; }; }