nix/config/Stylix.nix

48 lines
1 KiB
Nix
Raw Normal View History

{ pkgs, config, __findFile, ... }: {
stylix = {
2024-06-26 09:51:41 +03:00
enable = true;
image = config.module.wallpaper.path;
2024-06-30 03:04:33 +03:00
autoEnable = true;
2024-06-26 09:51:41 +03:00
polarity = "dark";
2024-04-03 02:05:36 +03:00
opacity = {
2024-05-07 14:09:40 +03:00
applications = 0.85;
2024-04-03 02:05:36 +03:00
terminal = 0.85;
2024-05-07 14:09:40 +03:00
popups = 0.85;
2024-04-03 02:05:36 +03:00
desktop = 0.85;
};
2024-04-03 05:06:03 +03:00
cursor = {
2024-05-03 14:52:37 +03:00
name = "Adwaita";
package = pkgs.gnome3.adwaita-icon-theme;
size = 14;
2024-04-03 05:06:03 +03:00
};
2024-06-29 19:01:12 +03:00
fonts = let
serif = {
package = (pkgs.callPackage <package/applefont> {});
2024-06-29 19:01:12 +03:00
name = "SF Pro Display";
};
in {
inherit serif;
2024-04-03 00:23:03 +03:00
sizes = {
applications = 12;
2024-06-23 14:48:11 +03:00
terminal = 14;
2024-04-03 00:23:03 +03:00
popups = 12;
2024-05-02 04:47:21 +03:00
desktop = 14;
2024-04-03 00:23:03 +03:00
};
2024-06-29 19:01:12 +03:00
sansSerif = serif;
2024-04-03 00:23:03 +03:00
monospace = {
package = (pkgs.nerdfonts.override { fonts = [ "Terminus" ]; });
2024-04-03 02:05:36 +03:00
name = "Terminess Nerd Font Mono";
2024-04-03 00:23:03 +03:00
};
emoji = {
package = pkgs.noto-fonts-emoji;
name = "Noto Color Emoji";
};
};
override = if config.module.wallpaper.forceContrastText then {
2024-06-23 01:02:11 +03:00
base04 = "000000";
2024-05-07 16:12:07 +03:00
base05 = "ffffff";
base06 = "ffffff";
} else {};
2024-04-03 00:23:03 +03:00
};
}