nixos/system/stylix.nix
Evie Litherland-Smith 7a10373030 Add nerd-font patched version of custom Iosevka to fonts
Move all of the logic for configuring and building the custom fonts to
iosevka.nix, to keep everything relevant in one place.
2024-03-02 15:04:35 +00:00

50 lines
1.3 KiB
Nix

{
lib,
pkgs,
catppuccinVariant ? "Mocha",
...
}: {
stylix = {
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-${lib.strings.toLower catppuccinVariant}.yaml";
autoEnable = false;
targets = {
chromium.enable = true;
console.enable = true;
};
image = ../wallpapers/default.jpg;
polarity = "dark";
opacity = {
applications = 0.85;
desktop = 1.0;
popups = 0.5;
terminal = 0.85;
};
cursor = let
variant = "${lib.strings.toLower catppuccinVariant}Dark";
in {
package = pkgs.catppuccin-cursors.${variant};
name = "Catppuccin-${catppuccinVariant}-Dark-Cursors";
};
fonts = let
iosevkaCustom = import ./iosevka.nix {
inherit (pkgs) stdenv iosevka nerd-font-patcher;
};
in {
sizes = {
applications = 16;
desktop = 20;
popups = 20;
terminal = 16;
};
serif = {inherit (iosevkaCustom.etoile) name package;};
sansSerif = {inherit (iosevkaCustom.aile) name package;};
monospace = {inherit (iosevkaCustom.nerdfont) name package;};
emoji = {
name = "Noto Color Emoji";
package = pkgs.noto-fonts-emoji;
};
};
homeManagerIntegration.followSystem = true;
};
}