nix/module/common/Stylix.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

2024-06-25 04:04:39 +03:00
{ pkgs, config, ... }: {
# Add a permanent link for the wallpaper to /etc/wallpaper.
2024-06-25 04:04:39 +03:00
environment.etc.wallpaper.source = config.module.common.wallpaper.path;
2024-04-03 00:23:03 +03:00
stylix = {
2024-06-26 09:51:41 +03:00
enable = true;
image = config.module.common.wallpaper.path;
2024-04-03 00:23:03 +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-04-03 00:23:03 +03:00
fonts = {
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-04-03 02:05:36 +03:00
serif = {
package = (pkgs.callPackage ./applefont {});
name = "SF Pro Display";
};
sansSerif = config.stylix.fonts.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";
};
};
2024-06-25 04:04:39 +03:00
override = if config.module.common.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
};
}