fonts: add typefaces and weight option
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
4cc5db838f
commit
ef8f3957e8
1 changed files with 17 additions and 8 deletions
|
@ -9,11 +9,12 @@ with lib; let
|
||||||
in {
|
in {
|
||||||
options.custom.settings.fonts = {
|
options.custom.settings.fonts = {
|
||||||
enable = mkOption {default = false;};
|
enable = mkOption {default = false;};
|
||||||
emoji = mkOption {default = "Noto Color Emoji";};
|
emoji = mkOption {default = "Blobmoji";};
|
||||||
fallback = mkOption {default = "Unifont";};
|
fallback = mkOption {default = "Unifont";};
|
||||||
monospace = mkOption {default = "IosevkaTerm NFP SemiBold";};
|
monospace = mkOption {default = "IosevkaTermSlab NFP Medium";};
|
||||||
sans-serif = mkOption {default = "Outfit";};
|
sans-serif = mkOption {default = "Afacad";};
|
||||||
serif = mkOption {default = "Liberation Serif";};
|
serif = mkOption {default = "Lora";};
|
||||||
|
weight = mkOption {default = "500";};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
@ -31,26 +32,34 @@ in {
|
||||||
iosevka-term
|
iosevka-term
|
||||||
iosevka-term-slab
|
iosevka-term-slab
|
||||||
jetbrains-mono
|
jetbrains-mono
|
||||||
|
shure-tech-mono
|
||||||
space-mono
|
space-mono
|
||||||
zed-mono
|
zed-mono
|
||||||
]
|
]
|
||||||
++ (with pkgs; [
|
++ (with pkgs; [
|
||||||
### Sans Serif
|
|
||||||
(google-fonts.override {
|
(google-fonts.override {
|
||||||
fonts = [
|
fonts = [
|
||||||
|
### Sans Serif
|
||||||
# Text
|
# Text
|
||||||
"Jost"
|
"Afacad"
|
||||||
"Lexend"
|
|
||||||
"Outfit"
|
"Outfit"
|
||||||
|
"Urbanist"
|
||||||
|
|
||||||
# Condensed
|
# Condensed
|
||||||
"Oswald"
|
"Oswald"
|
||||||
|
|
||||||
# Pixel
|
# Pixel
|
||||||
|
"Geo"
|
||||||
"Silkscreen"
|
"Silkscreen"
|
||||||
|
|
||||||
|
### Serif
|
||||||
|
"Lora"
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
||||||
|
### Emoji
|
||||||
|
noto-fonts-emoji-blob-bin
|
||||||
|
|
||||||
### Other
|
### Other
|
||||||
# Microsoft
|
# Microsoft
|
||||||
corefonts
|
corefonts
|
||||||
|
@ -60,7 +69,7 @@ in {
|
||||||
unifont
|
unifont
|
||||||
]);
|
]);
|
||||||
|
|
||||||
#?? fc-list --brief | grep family: | sort
|
#?? fc-list : family | sort
|
||||||
fontconfig.defaultFonts = {
|
fontconfig.defaultFonts = {
|
||||||
emoji = [cfg.emoji];
|
emoji = [cfg.emoji];
|
||||||
monospace = [cfg.monospace];
|
monospace = [cfg.monospace];
|
||||||
|
|
Loading…
Add table
Reference in a new issue