idiosyn/home/config/nil/founts.nix
Mikael Voss 2e947b80e7
Some checks failed
nix flake check / check (aarch64-linux) (push) Has been cancelled
nix flake check / check (x86_64-linux) (push) Has been cancelled
home/founts: Switch to new Nerd Fonts package
2024-11-30 00:42:58 +01:00

56 lines
1.2 KiB
Nix

{ self, ... }: { config, lib, pkgs, ... }@args:
let
osConfig = args.osConfig or { };
iosevka = pkgs.iosevka.override {
set = "-idiosyn-sans-term";
privateBuildPlan = import ./iosevka.nix // {
family = "idiosyn sans term";
spacing = "term";
};
};
nerdfonts = pkgs.nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; };
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 = [
"idiosyn sans term"
"Fira Code"
"Julia Mono"
"M PLUS 1 Code"
"Noto Sans Mono"
"Symbols Nerd Font Mono"
];
emoji = [ "Noto Color Emoji" ];
};
};
home.packages = with pkgs; [
fira-code
iosevka
julia-mono
lato
mplus-outline-fonts.githubRelease
nerd-fonts.symbols-only
noto-fonts
noto-fonts-color-emoji
unifont
];
xdg.configFile."fontconfig/conf.d/80-fira-code.conf".source = ./fira-code.xml;
}