2024-06-09 16:44:23 +00:00
|
|
|
{ pkgs, lib, ... }:
|
2021-11-08 21:21:27 +00:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
{
|
2023-11-06 12:09:12 +00:00
|
|
|
imports = [ ./mounting.nix ];
|
2021-11-08 21:21:27 +00:00
|
|
|
# Fonts
|
|
|
|
config.fonts = {
|
2024-06-19 17:24:57 +00:00
|
|
|
packages = with pkgs; mkForce [
|
2021-11-08 21:21:27 +00:00
|
|
|
noto-fonts-emoji-blob-bin
|
|
|
|
ibm-plex
|
2023-04-16 10:49:10 +00:00
|
|
|
(nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
|
2021-11-08 21:21:27 +00:00
|
|
|
noto-fonts
|
|
|
|
noto-fonts-cjk
|
2021-11-08 23:08:33 +00:00
|
|
|
merriweather
|
2023-10-23 14:21:07 +00:00
|
|
|
corefonts
|
2024-06-11 21:40:46 +00:00
|
|
|
font-awesome
|
2024-07-02 13:36:35 +00:00
|
|
|
hack-font # for Plasma
|
2021-11-08 21:21:27 +00:00
|
|
|
];
|
2022-10-27 19:05:33 +00:00
|
|
|
} // (if pkgs.stdenv.isLinux then {
|
2023-12-01 21:05:54 +00:00
|
|
|
enableDefaultPackages = false;
|
2021-11-08 21:21:27 +00:00
|
|
|
fontconfig = {
|
|
|
|
defaultFonts = {
|
|
|
|
emoji = lib.mkBefore [ "Blobmoji" ];
|
2024-06-09 16:44:23 +00:00
|
|
|
serif = lib.mkBefore [ "IBM Plex Serif" "IBM Plex Sans JP" "IBM Plex Sans KR" "Blobmoji" ];
|
|
|
|
sansSerif = lib.mkBefore [ "IBM Plex Sans" "IBM Plex Sans JP" "IBM Plex Sans KR" "Blobmoji" ];
|
2024-06-19 17:24:57 +00:00
|
|
|
monospace = lib.mkBefore [ "IBM Plex Mono" "Font Awesome 6 Free" "Symbols Nerd Font" "Blobmoji" "IBM Plex Sans JP" ];
|
2021-11-08 21:21:27 +00:00
|
|
|
};
|
2023-06-21 23:40:41 +00:00
|
|
|
localConf = ''
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
|
|
|
<fontconfig>
|
|
|
|
<alias binding="same">
|
|
|
|
<family>system-ui</family>
|
|
|
|
<prefer>
|
|
|
|
<family>IBM Plex Sans</family>
|
|
|
|
<family>IBM Plex Sans JP</family>
|
|
|
|
<family>IBM Plex Sans KR</family>
|
2024-06-09 16:44:23 +00:00
|
|
|
<family>Blobmoji</family>
|
2023-06-21 23:40:41 +00:00
|
|
|
</prefer>
|
|
|
|
</alias>
|
|
|
|
</fontconfig>
|
|
|
|
'';
|
2021-11-08 21:21:27 +00:00
|
|
|
};
|
2022-09-26 18:50:26 +00:00
|
|
|
fontDir.enable = true;
|
2022-10-27 19:05:33 +00:00
|
|
|
} else { }) // (if pkgs.stdenv.isDarwin then {
|
2022-05-05 16:27:12 +00:00
|
|
|
fontDir.enable = true;
|
|
|
|
} else { });
|
2021-11-08 21:21:27 +00:00
|
|
|
}
|
2023-03-31 14:48:43 +00:00
|
|
|
|