2020-12-05 13:48:06 +01:00
|
|
|
|
{ config, lib, pkgs, ... }:
|
2020-08-22 17:44:39 +02:00
|
|
|
|
|
2020-12-05 15:44:58 +01:00
|
|
|
|
lib.mkIf config.sbruder.gui.enable {
|
2020-08-22 17:44:39 +02:00
|
|
|
|
fonts = {
|
|
|
|
|
fonts = with pkgs; [
|
2021-01-20 16:23:18 +01:00
|
|
|
|
(nerdfonts.override { fonts = [ "Iosevka" ]; }) # default monospace font
|
|
|
|
|
] ++ lib.optionals config.sbruder.full [
|
2020-08-22 17:44:39 +02:00
|
|
|
|
google-fonts # google font collection (free)
|
2020-10-11 13:02:48 +02:00
|
|
|
|
lmodern # Latin Modern for non-latex applications
|
2022-04-23 21:10:27 +02:00
|
|
|
|
noto-fonts-emoji-blob-bin # The most owo emojis (thanks google for killing them)
|
2020-09-25 18:31:43 +02:00
|
|
|
|
source-han-sans
|
|
|
|
|
source-han-serif # CJK fonts
|
2021-01-20 16:23:18 +01:00
|
|
|
|
] ++ lib.optionals (!config.sbruder.full) [
|
|
|
|
|
roboto # default sans-serif font (normally included in google-fonts)
|
2021-01-03 17:07:45 +01:00
|
|
|
|
] ++ lib.optionals config.sbruder.unfree.allowAssets [
|
|
|
|
|
corefonts # good ol’ microsoft fonts
|
2020-08-22 17:44:39 +02:00
|
|
|
|
vistafonts # newer microsoft fonts
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
enableDefaultFonts = true;
|
|
|
|
|
|
2020-09-26 18:10:22 +02:00
|
|
|
|
fontconfig = {
|
|
|
|
|
defaultFonts = {
|
2022-04-23 21:10:27 +02:00
|
|
|
|
emoji = [ "Blobmoji" ];
|
2020-09-26 18:10:22 +02:00
|
|
|
|
monospace = [ "Iosevka Nerd Font" "Source Han Sans" ];
|
|
|
|
|
sansSerif = [ "Roboto" "Source Han Sans" ];
|
|
|
|
|
serif = [ "Georgia" "Source Han Serif" ];
|
|
|
|
|
};
|
2021-08-05 13:23:07 +02:00
|
|
|
|
localConf = /* xml */ ''
|
2020-09-26 18:10:22 +02:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
|
|
|
|
<fontconfig>
|
|
|
|
|
<alias>
|
|
|
|
|
<family>system-ui</family>
|
|
|
|
|
<prefer>
|
|
|
|
|
<family>sans-serif</family>
|
|
|
|
|
</prefer>
|
|
|
|
|
</alias>
|
|
|
|
|
</fontconfig>
|
|
|
|
|
'';
|
2020-08-22 17:44:39 +02:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|