nix/system/Stylix.nix

43 lines
952 B
Nix
Raw Normal View History

{ config, lib, ... }:
let
style = config.module.style;
wallpaper = config.module.wallpaper;
in
2024-11-04 04:37:29 +03:00
{
2024-12-30 05:14:17 +03:00
stylix = lib.mkMerge [
{
2024-12-28 11:35:57 +03:00
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;
2024-12-28 11:35:57 +03:00
popups = popup;
};
};
2024-12-28 11:35:57 +03:00
opacity = with style.opacity; {
inherit desktop terminal;
applications = application;
2024-12-30 04:59:42 +03:00
popups = popup;
2024-12-28 11:35:57 +03:00
};
}
2024-12-30 05:14:17 +03:00
(lib.mkIf wallpaper.forceContrastText {
2024-12-28 11:35:57 +03:00
override = {
base04 = "000000";
base05 = "ffffff";
base06 = "ffffff";
};
2024-12-30 05:14:17 +03:00
})
(lib.mkIf (wallpaper.scheme != null) { base16Scheme = wallpaper.scheme; })
];
2024-11-04 04:37:29 +03:00
}