From 8bdb0d1a47218a7c0c445dbbb913fd8736bcbbfc Mon Sep 17 00:00:00 2001 From: punkfairie Date: Fri, 15 Nov 2024 21:33:07 -0800 Subject: [PATCH] feat(home): GTK config --- modules/home/appearance/gtk/default.nix | 26 +++++++++++++++++++++++++ old/home/appearance/gtk.nix | 10 ---------- 2 files changed, 26 insertions(+), 10 deletions(-) create mode 100644 modules/home/appearance/gtk/default.nix delete mode 100644 old/home/appearance/gtk.nix 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"; - }; -}