small update
This commit is contained in:
parent
c4f6785845
commit
b1490ec9a8
100 changed files with 187 additions and 1695 deletions
111
modules/style/fonts.mod.nix
Normal file
111
modules/style/fonts.mod.nix
Normal file
|
@ -0,0 +1,111 @@
|
|||
{pkgs, ...}: let
|
||||
inherit (builtins) mapAttrs;
|
||||
|
||||
fancy-iosevka = pkgs.iosevka.override {
|
||||
privateBuildPlan = {
|
||||
family = "fancy-iosevka";
|
||||
spacing = "term";
|
||||
serifs = "sans";
|
||||
noCvSs = true;
|
||||
exportGlyphNames = false;
|
||||
|
||||
ligations.inherits = "dlig";
|
||||
variants = {
|
||||
inherits = "ss15";
|
||||
design = {
|
||||
e = "flat-crossbar";
|
||||
f = "diagonal-tailed-crossbar-at-x-height";
|
||||
};
|
||||
};
|
||||
weights.Regular = {
|
||||
shape = 400;
|
||||
menu = 400;
|
||||
css = 400;
|
||||
};
|
||||
weights.Bold = {
|
||||
shape = 700;
|
||||
menu = 700;
|
||||
css = 700;
|
||||
};
|
||||
widths.Condensed = {
|
||||
shape = 500;
|
||||
menu = 3;
|
||||
css = "condensed";
|
||||
};
|
||||
widths.normal = {
|
||||
shape = 600;
|
||||
menu = 5;
|
||||
css = "normal";
|
||||
};
|
||||
};
|
||||
set = "Fancy";
|
||||
};
|
||||
in {
|
||||
# A (somewhat) sane list of fonts to be installed.
|
||||
fonts = {
|
||||
fontconfig = {
|
||||
# Whether to enable fontconfig configuration. This will, for
|
||||
# example, allow fontconfig to discover fonts and configurations
|
||||
# installed through home.packages and nix-env.
|
||||
enable = true;
|
||||
|
||||
# Enable font antialiasing.
|
||||
antialias = true;
|
||||
|
||||
# Enable font hinting. Hinting aligns glyphs to pixel boundaries
|
||||
# to improve rendering sharpness at low resolution.
|
||||
hinting.enable = true;
|
||||
|
||||
# Set the defalt fonts. This was taken from raf,
|
||||
# many thanks.
|
||||
defaultFonts = let
|
||||
common = [
|
||||
"Iosevka Nerd Font"
|
||||
"Roboto Mono Nerd Font"
|
||||
"Fira Code Nerd Font"
|
||||
"Symbols Nerd Font"
|
||||
"Noto Color Emoji"
|
||||
"JetbrainsMono Nerd Font"
|
||||
];
|
||||
in
|
||||
mapAttrs (_: fonts: fonts ++ common) {
|
||||
serif = ["Noto Serif"];
|
||||
sansSerif = ["Lexend"];
|
||||
emoji = ["Noto Color Emoji"];
|
||||
monospace = ["Iosevka Nerd Font"];
|
||||
};
|
||||
};
|
||||
packages = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs)
|
||||
material-icons
|
||||
material-design-icons
|
||||
lexend
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-cjk-serif
|
||||
noto-fonts-color-emoji
|
||||
corefonts
|
||||
font-awesome
|
||||
;
|
||||
inherit
|
||||
(pkgs.nerd-fonts)
|
||||
iosevka
|
||||
jetbrains-mono
|
||||
comic-shanns-mono
|
||||
symbols-only
|
||||
;
|
||||
|
||||
# inherit fancy-iosevka;
|
||||
};
|
||||
fontDir = {
|
||||
# Whether to create a directory with links to all fonts in
|
||||
# /run/current-system/sw/share/X11/fonts
|
||||
enable = true;
|
||||
|
||||
# Whether to decompress fonts in
|
||||
# /run/current-system/sw/share/X11/fonts
|
||||
decompressFonts = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue