system/services/regreet: use theme module
This commit is contained in:
parent
df1d1381e1
commit
c8e31a30ee
1 changed files with 11 additions and 2 deletions
|
@ -1,10 +1,11 @@
|
||||||
{
|
{
|
||||||
|
inputs,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) mkForce;
|
inherit (lib) mkDefault mkForce;
|
||||||
in {
|
in {
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
config.style.gtk.theme.package
|
config.style.gtk.theme.package
|
||||||
|
@ -20,10 +21,18 @@ in {
|
||||||
"-d"
|
"-d"
|
||||||
];
|
];
|
||||||
settings = {
|
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;
|
cursor_theme_name = mkForce config.style.cursorTheme.name;
|
||||||
icon_theme_name = mkForce config.style.gtk.iconTheme.name;
|
icon_theme_name = mkForce config.style.gtk.iconTheme.name;
|
||||||
theme_name = mkForce config.style.gtk.theme.name;
|
theme_name = mkForce config.style.gtk.theme.name;
|
||||||
|
font_name = mkForce "Inter 18";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue