From 3017dfc76c055800fe508a30d105237e32b895d2 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Tue, 10 Dec 2024 08:36:15 +0100 Subject: [PATCH] treewide: bring regreet theme config to theme module --- modules/theme/gtk.nix | 12 ++++++++++++ system/services/greetd.nix | 9 --------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/modules/theme/gtk.nix b/modules/theme/gtk.nix index 4ef74a1..048edb5 100644 --- a/modules/theme/gtk.nix +++ b/modules/theme/gtk.nix @@ -59,6 +59,18 @@ in { }) ]; + programs.regreet = { + theme = { + inherit (cfg.theme) name package; + }; + iconTheme = { + inherit (cfg.iconTheme) name package; + }; + cursorTheme = { + inherit (config.theme.cursorTheme) name package; + }; + }; + home-manager.users.nezia = mkIf config.theme.enable (let scheme = inputs.basix.schemeData.base16.${config.theme.schemeName}; in { diff --git a/system/services/greetd.nix b/system/services/greetd.nix index 79631b2..741d148 100644 --- a/system/services/greetd.nix +++ b/system/services/greetd.nix @@ -63,15 +63,6 @@ in { }; programs.regreet = { enable = true; - theme = { - inherit (config.theme.gtk.theme) name package; - }; - iconTheme = { - inherit (config.theme.gtk.iconTheme) name package; - }; - cursorTheme = { - inherit (config.theme.cursorTheme) name package; - }; settings = { background = { path = blurImage pkgs config.theme.wallpaper;