feat(home): GTK config

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

View file

@ -0,0 +1,26 @@
{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule enabled;
cfg = config.${namespace}.appearance.gtk;
inherit (config.${namespace}) theme;
in
{
options.appearance = mkEnableModule "gtk";
config = mkIf cfg.enable {
gtk = {
enable = true;
"${theme.colors.theme}" = enabled;
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
};
};
}

View file

@ -1,10 +0,0 @@
{ config, ... }:
{
gtk = {
enable = true;
rose-pine.enable = true;
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
};
}