27 lines
444 B
Nix
27 lines
444 B
Nix
|
{
|
||
|
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";
|
||
|
};
|
||
|
};
|
||
|
}
|