Add custom Iosevka (font) build for testing before I switch

This commit is contained in:
Evie Litherland-Smith 2024-01-16 08:22:43 +00:00
parent b3988f8eae
commit 5b3a541c08

View file

@ -46,7 +46,33 @@
./hosts/${hostName}/hardware-configuration.nix ./hosts/${hostName}/hardware-configuration.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
stylix.nixosModules.stylix stylix.nixosModules.stylix
({ config, lib, pkgs, ... }: { ({ config, lib, pkgs, ... }:
let
iosevka-custom = pkgs.iosevka.override {
set = "custom";
privateBuildPlan = {
family = "Iosevka Custom";
spacing = "normal";
serifs = "sans";
noCvSs = false;
exportGlyphNames = false;
variants = { inherits = "ss05"; };
ligations = { inherits = "dlig"; };
widths = {
Condensed = {
shape = 500;
menu = 3;
css = "condensed";
};
Normal = {
shape = 600;
menu = 5;
css = "normal";
};
};
};
};
in {
boot.loader = { boot.loader = {
systemd-boot.enable = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
@ -123,37 +149,33 @@
}; };
fonts = rec { fonts = rec {
sizes.terminal = 12; sizes.terminal = 12;
emoji = { serif = sansSerif;
name = "Noto Color Emoji"; sansSerif = {
package = pkgs.noto-fonts-emoji; name = "Fira Sans";
package = pkgs.fira;
}; };
monospace = { monospace = {
name = "FiraCode Nerd Font"; name = "FiraCode Nerd Font";
package = package =
(pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; }); (pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; });
}; };
sansSerif = { emoji = {
name = "Fira Sans"; name = "Noto Color Emoji";
package = pkgs.fira; package = pkgs.noto-fonts-emoji;
}; };
serif = sansSerif;
}; };
homeManagerIntegration.followSystem = true; homeManagerIntegration.followSystem = true;
}; };
fonts = { fonts = {
packages = with pkgs; [ packages = with pkgs; [
fira (nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
fira-mono iosevka
fira-code # iosevka-custom
(nerdfonts.override {
fonts = [ "FiraCode" "NerdFontsSymbolsOnly" ];
})
emacs-all-the-icons-fonts emacs-all-the-icons-fonts
weather-icons weather-icons
noto-fonts noto-fonts
noto-fonts-cjk noto-fonts-cjk
noto-fonts-emoji noto-fonts-emoji
liberation_ttf
]; ];
fontconfig.enable = true; fontconfig.enable = true;
}; };