2020-06-12 18:34:18 +04:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
let
|
|
|
|
plex = pkgs.runCommand "ibm-plex" {
|
|
|
|
src = pkgs.fetchzip {
|
|
|
|
url = "https://github.com/IBM/plex/releases/download/v5.0.0/TrueType.zip";
|
|
|
|
sha256 =
|
|
|
|
"sha256-KKw9pk5YmWpaMKnYKhjwHynHxx8c0F8U/fgoU9qimHY=";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
"mkdir -p $out/share/fonts/truetype; cp $src/**/*.ttf $out/share/fonts/truetype";
|
|
|
|
in {
|
2020-02-17 17:00:59 +04:00
|
|
|
fonts = {
|
|
|
|
fonts = with pkgs; [
|
2020-06-12 18:34:18 +04:00
|
|
|
plex
|
2020-02-17 17:00:59 +04:00
|
|
|
hasklig
|
2020-06-12 18:34:18 +04:00
|
|
|
nerdfonts
|
2020-02-17 17:00:59 +04:00
|
|
|
material-design-icons
|
|
|
|
material-icons
|
|
|
|
];
|
|
|
|
fontconfig = {
|
|
|
|
enable = true;
|
|
|
|
defaultFonts = {
|
2020-06-12 18:34:18 +04:00
|
|
|
monospace = [ "IBM Plex Mono 13" ];
|
|
|
|
sansSerif = [ "IBM Plex Sans 13" ];
|
|
|
|
serif = [ "IBM Plex Serif 13" ];
|
2020-02-17 17:00:59 +04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
enableDefaultFonts = true;
|
|
|
|
};
|
|
|
|
}
|