2024-08-26 13:18:45 +02:00
|
|
|
{ self, ... }: { config, lib, pkgs, ... }@args:
|
2024-08-25 19:10:52 +02:00
|
|
|
let
|
|
|
|
osConfig = args.osConfig or { };
|
|
|
|
in lib.mkIf (osConfig.hardware.graphics.enable or false) {
|
|
|
|
fonts.fontconfig = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
defaultFonts = {
|
|
|
|
sansSerif = [
|
|
|
|
"Lato"
|
|
|
|
"M PLUS 1"
|
|
|
|
"Noto Sans"
|
|
|
|
"Symbols Nerd Font"
|
|
|
|
"Unifont"
|
|
|
|
"Unifont Upper"
|
|
|
|
];
|
|
|
|
|
|
|
|
serif = [ "Noto Serif" ];
|
|
|
|
|
|
|
|
monospace = [
|
2024-09-22 21:04:14 +02:00
|
|
|
"idiosyn sans term"
|
2024-08-25 19:10:52 +02:00
|
|
|
"Fira Code"
|
2024-09-20 20:44:50 +02:00
|
|
|
"Julia Mono"
|
2024-08-25 19:10:52 +02:00
|
|
|
"M PLUS 1 Code"
|
|
|
|
"Noto Sans Mono"
|
|
|
|
"Symbols Nerd Font Mono"
|
|
|
|
];
|
|
|
|
|
|
|
|
emoji = [ "Noto Color Emoji" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
2024-09-22 21:01:31 +02:00
|
|
|
fira-code
|
2024-09-20 20:44:50 +02:00
|
|
|
julia-mono
|
2024-08-25 19:10:52 +02:00
|
|
|
lato
|
|
|
|
mplus-outline-fonts.githubRelease
|
|
|
|
(nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
|
|
|
|
noto-fonts
|
|
|
|
noto-fonts-color-emoji
|
|
|
|
unifont
|
|
|
|
];
|
|
|
|
|
|
|
|
stylix.fonts = {
|
|
|
|
sansSerif = {
|
|
|
|
package = pkgs.lato;
|
|
|
|
name = "sans-serif";
|
|
|
|
};
|
|
|
|
|
|
|
|
serif = {
|
|
|
|
package = pkgs.noto-fonts;
|
|
|
|
name = "serif";
|
|
|
|
};
|
|
|
|
|
|
|
|
monospace = {
|
2024-09-22 21:04:14 +02:00
|
|
|
package = pkgs.iosevka.override {
|
|
|
|
set = "-idiosyn-sans-term";
|
|
|
|
privateBuildPlan = import ./iosevka.nix // {
|
|
|
|
family = "idiosyn sans term";
|
|
|
|
spacing = "term";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-08-25 19:10:52 +02:00
|
|
|
name = "monospace";
|
|
|
|
};
|
|
|
|
|
|
|
|
emoji = {
|
|
|
|
package = pkgs.noto-fonts-color-emoji;
|
|
|
|
name = "emoji";
|
|
|
|
};
|
|
|
|
|
|
|
|
sizes = {
|
|
|
|
terminal = 11;
|
2024-08-27 15:49:22 +02:00
|
|
|
popups = 13;
|
2024-08-25 19:10:52 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
xdg.configFile."fontconfig/conf.d/80-fira-code.conf".source = ./fira-code.xml;
|
|
|
|
}
|