system/services/regreet: use theme module

This commit is contained in:
Anthony Rodriguez 2024-10-08 22:58:18 +02:00
parent df1d1381e1
commit c8e31a30ee
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -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";
};
};
};