This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
nil/modules/system/fonts.nix
2022-03-10 10:08:58 -05:00

29 lines
582 B
Nix

{ config, lib, pkgs, ... }:
let graphical = config.this.graphical;
in {
config = lib.mkIf graphical.enable {
fonts = {
enableDefaultFonts = true;
fonts = with pkgs; [
alegreya
fira-code
fira-code-symbols
font-awesome
hasklig
inter
liberation_ttf
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
];
fontconfig = {
defaultFonts = {
serif = [ "inter" ];
sansSerif = [ "alegreya" ];
monospace = [ "hasklig" ];
};
};
};
};
}