flocon/system/programs/fonts.nix
Anthony Rodriguez 8fe0604299
repo: huge refactor
Refactored the entire repository structure, as putting everything into
modules was just awkward. Took heavy inspiration from fufexan's
repository, fufexan/dotfiles, as the structure felt much saner.
2024-09-29 23:48:55 +02:00

21 lines
510 B
Nix

{pkgs, ...}: {
fonts = {
packages = with pkgs; [
noto-fonts
noto-fonts-emoji
intel-one-mono
(nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})
];
enableDefaultPackages = false;
fontconfig.defaultFonts = let
addAll = builtins.mapAttrs (_: v: ["Symbols Nerd Font"] ++ v ++ ["Noto Color Emoji"]);
in
addAll {
serif = ["Noto Serif"];
sansSerif = ["Inter"];
monospace = ["Intel One Mono"];
emoji = [];
};
};
}