diff --git a/modules/home/appearance/gtk/default.nix b/modules/home/appearance/gtk/default.nix new file mode 100644 index 0000000..9418ab8 --- /dev/null +++ b/modules/home/appearance/gtk/default.nix @@ -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"; + }; + }; +} diff --git a/old/home/appearance/gtk.nix b/old/home/appearance/gtk.nix deleted file mode 100644 index 013c3e5..0000000 --- a/old/home/appearance/gtk.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ config, ... }: -{ - gtk = { - enable = true; - - rose-pine.enable = true; - - gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc"; - }; -}