nix/module/common/Stylix.nix

51 lines
1.1 KiB
Nix
Raw Normal View History

2024-05-07 16:12:07 +03:00
{ pkgs, config, wallpaper, ... }: let
in {
# Add a permanent link for the wallpaper to /etc/wallpaper.
2024-04-04 03:40:07 +03:00
environment.etc.wallpaper.source = wallpaper.path;
2024-04-03 00:23:03 +03:00
stylix = {
2024-06-09 23:35:53 +03:00
# NOTE: Enable this later...
# enable = true;
2024-04-03 00:23:03 +03:00
image = wallpaper.path;
autoEnable = true;
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;
terminal = 12;
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-05-14 22:42:12 +03:00
override = if wallpaper.forceWhiteText then {
2024-05-07 16:12:07 +03:00
base04 = "ffffff";
base05 = "ffffff";
base06 = "ffffff";
} else {};
2024-04-03 00:23:03 +03:00
};
}