1
1
Fork 0

fonts: add typefaces and weight option

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2025-01-11 11:53:06 -06:00
parent 4cc5db838f
commit ef8f3957e8
Signed by: Myned
GPG key ID: C7224454F7881A34

View file

@ -9,11 +9,12 @@ with lib; let
in {
options.custom.settings.fonts = {
enable = mkOption {default = false;};
emoji = mkOption {default = "Noto Color Emoji";};
emoji = mkOption {default = "Blobmoji";};
fallback = mkOption {default = "Unifont";};
monospace = mkOption {default = "IosevkaTerm NFP SemiBold";};
sans-serif = mkOption {default = "Outfit";};
serif = mkOption {default = "Liberation Serif";};
monospace = mkOption {default = "IosevkaTermSlab NFP Medium";};
sans-serif = mkOption {default = "Afacad";};
serif = mkOption {default = "Lora";};
weight = mkOption {default = "500";};
};
config = mkIf cfg.enable {
@ -31,26 +32,34 @@ in {
iosevka-term
iosevka-term-slab
jetbrains-mono
shure-tech-mono
space-mono
zed-mono
]
++ (with pkgs; [
### Sans Serif
(google-fonts.override {
fonts = [
### Sans Serif
# Text
"Jost"
"Lexend"
"Afacad"
"Outfit"
"Urbanist"
# Condensed
"Oswald"
# Pixel
"Geo"
"Silkscreen"
### Serif
"Lora"
];
})
### Emoji
noto-fonts-emoji-blob-bin
### Other
# Microsoft
corefonts
@ -60,7 +69,7 @@ in {
unifont
]);
#?? fc-list --brief | grep family: | sort
#?? fc-list : family | sort
fontconfig.defaultFonts = {
emoji = [cfg.emoji];
monospace = [cfg.monospace];