Enable fonts
This commit is contained in:
parent
253bb50e93
commit
336f75bf50
3 changed files with 32 additions and 20 deletions
27
modules/personal/fonts/default.nix
Normal file
27
modules/personal/fonts/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
{
|
||||
# Fonts
|
||||
config.fonts = {
|
||||
fonts = with pkgs; [
|
||||
noto-fonts-emoji-blob-bin
|
||||
ibm-plex
|
||||
(nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
];
|
||||
} // (if (strings.hasSuffix "linux" pkgs.system) then {
|
||||
enableDefaultFonts = false;
|
||||
fontconfig = {
|
||||
defaultFonts = {
|
||||
emoji = lib.mkBefore [ "Blobmoji" ];
|
||||
serif = lib.mkBefore [ "IBM Plex Serif" ];
|
||||
sansSerif = lib.mkBefore [ "IBM Plex Sans" ];
|
||||
monospace = lib.mkBefore [ "IBM Plex Mono" ];
|
||||
};
|
||||
};
|
||||
} else {}) // (if (strings.hasSuffix "darwin" pkgs.system) then {
|
||||
enableFontDir = true;
|
||||
} else {});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue