From 3d7fc9a4edf1ca323dcda3378eb6810028623f4c Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Tue, 15 Apr 2025 11:45:01 -0700 Subject: home: improved theme system --- modules/home/desktop/components/gtk/default.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'modules/home/desktop/components') diff --git a/modules/home/desktop/components/gtk/default.nix b/modules/home/desktop/components/gtk/default.nix index a20cc1f..ccdb031 100644 --- a/modules/home/desktop/components/gtk/default.nix +++ b/modules/home/desktop/components/gtk/default.nix @@ -1,7 +1,8 @@ -{ options, config, lib, pkgs, namespace, ... }: +{ options, config, lib, namespace, ... }: with lib; with lib.${namespace}; let cfg = config.${namespace}.desktop.components.gtk; + theme = config.${namespace}.desktop.theme; in { options.${namespace}.desktop.components.gtk = with types; { enable = mkEnableOption "gtk"; @@ -11,11 +12,7 @@ in { gtk = { enable = true; - #TODO: dynamic theming - theme = { - package = pkgs.gruvbox-gtk-theme; - name = "Gruvbox-Dark"; - }; + theme = theme.gtk; font = { name = "monospace"; -- cgit v1.2.3