marleyos/modules/home/appearance/qt/default.nix

29 lines
526 B
Nix

{
lib,
config,
inputs,
...
}:
let
inherit (lib) mkIf;
inherit (lib.marleyos) mkEnableModule;
cfg = config.marleyos.appearance.qt;
inherit (config.marleyos.theme) colors;
in
{
options.marleyos = mkEnableModule "appearance.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";
};
};
}