From c8e31a30ee6fe9b59ad07cf0cff7f85891f0b63a Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Tue, 8 Oct 2024 22:58:18 +0200 Subject: [PATCH] system/services/regreet: use theme module --- system/services/regreet.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/system/services/regreet.nix b/system/services/regreet.nix index 252aa2b..41c990e 100644 --- a/system/services/regreet.nix +++ b/system/services/regreet.nix @@ -1,10 +1,11 @@ { + inputs, lib, pkgs, config, ... }: let - inherit (lib) mkForce; + inherit (lib) mkDefault mkForce; in { environment.systemPackages = [ config.style.gtk.theme.package @@ -20,10 +21,18 @@ in { "-d" ]; settings = { - GTK = { + background = { + path = mkDefault config.style.wallpaper; + fit = "Cover"; + }; + GTK = let + isDark = inputs.basix.schemeData.base16.${config.style.scheme}.variant == "dark"; + in { + application_prefer_dark_theme = isDark; cursor_theme_name = mkForce config.style.cursorTheme.name; icon_theme_name = mkForce config.style.gtk.iconTheme.name; theme_name = mkForce config.style.gtk.theme.name; + font_name = mkForce "Inter 18"; }; }; };