47 lines
1 KiB
Nix
47 lines
1 KiB
Nix
{ config, lib, ... }:
|
|
let
|
|
style = config.module.style;
|
|
wallpaper = config.module.wallpaper;
|
|
in
|
|
{
|
|
config = lib.mkMerge [
|
|
{
|
|
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;
|
|
};
|
|
};
|
|
}
|
|
|
|
(lib.mkIf wallpaper.forceContrastText {
|
|
stylix.override = {
|
|
base04 = lib.mkForce "000000";
|
|
base05 = lib.mkForce "ffffff";
|
|
base06 = lib.mkForce "ffffff";
|
|
};
|
|
})
|
|
|
|
(lib.mkIf (wallpaper.style != null) { stylix.base16Scheme = wallpaper.style; })
|
|
];
|
|
}
|