34 lines
706 B
Nix
34 lines
706 B
Nix
{
|
|
config,
|
|
...
|
|
}: let
|
|
style = config.module.style;
|
|
wallpaper = config.module.wallpaper;
|
|
in {
|
|
stylix = {
|
|
inherit (config.module.style) cursor;
|
|
enable = true;
|
|
autoEnable = true;
|
|
image = wallpaper.path;
|
|
polarity = "dark";
|
|
fonts = with style.font; {
|
|
inherit emoji monospace sansSerif serif;
|
|
sizes = with size; {
|
|
inherit desktop terminal;
|
|
applications = application;
|
|
popups = popup;
|
|
};
|
|
};
|
|
opacity = with style.opacity; {
|
|
inherit desktop terminal;
|
|
applications = application;
|
|
popups = popups;
|
|
};
|
|
override = if wallpaper.forceContrastText then {
|
|
base04 = "000000";
|
|
base05 = "ffffff";
|
|
base06 = "ffffff";
|
|
} else { };
|
|
};
|
|
}
|