feat(home): Qt config

This commit is contained in:
punkfairie 2024-11-15 21:33:15 -08:00
parent 8bdb0d1a47
commit adacfc47c4
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
2 changed files with 30 additions and 10 deletions

View file

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

View file

@ -1,10 +0,0 @@
{ flake, ... }:
{
xdg.configFile."qt5ct/colors/rose-pine.conf".source = "${flake.inputs.rose-pine-qt5ct}/rose-pine.conf";
qt = {
enable = true;
style.name = "adwaita";
};
}