marleyos/modules/home/appearance/qt/default.nix
punkfairie 15372b7726
feat: ${namespace} -> marleyos
There was little point to doing this anyway as project-wide find &
replace is trivial.
2024-11-16 22:36:34 -08:00

29 lines
517 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 = 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";
};
};
}