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
home-manager.nixosModules.home-manager
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 = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
@ -123,37 +149,33 @@
};
fonts = rec {
sizes.terminal = 12;
emoji = {
name = "Noto Color Emoji";
package = pkgs.noto-fonts-emoji;
serif = sansSerif;
sansSerif = {
name = "Fira Sans";
package = pkgs.fira;
};
monospace = {
name = "FiraCode Nerd Font";
package =
(pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; });
};
sansSerif = {
name = "Fira Sans";
package = pkgs.fira;
emoji = {
name = "Noto Color Emoji";
package = pkgs.noto-fonts-emoji;
};
serif = sansSerif;
};
homeManagerIntegration.followSystem = true;
};
fonts = {
packages = with pkgs; [
fira
fira-mono
fira-code
(nerdfonts.override {
fonts = [ "FiraCode" "NerdFontsSymbolsOnly" ];
})
(nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
iosevka
# iosevka-custom
emacs-all-the-icons-fonts
weather-icons
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
liberation_ttf
];
fontconfig.enable = true;
};