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

27 lines
444 B
Nix
Raw Normal View History

2024-11-15 21:33:07 -08:00
{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule enabled;
cfg = config.${namespace}.appearance.gtk;
inherit (config.${namespace}) theme;
in
{
options = mkEnableModule "appearance.gtk";
2024-11-15 21:33:07 -08:00
config = mkIf cfg.enable {
gtk = {
enable = true;
"${theme.colors.theme}" = enabled;
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
};
};
}