punkfairie
6a2b253f83
Modules were being placed at <group>.<namespace>.<module> instead of <namespace>.<group>.<module>
26 lines
444 B
Nix
26 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 = mkEnableModule "appearance.gtk";
|
|
|
|
config = mkIf cfg.enable {
|
|
gtk = {
|
|
enable = true;
|
|
|
|
"${theme.colors.theme}" = enabled;
|
|
|
|
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
|
};
|
|
};
|
|
}
|