update
This commit is contained in:
parent
1e9033f823
commit
b9fe4ae3c7
8 changed files with 92 additions and 35 deletions
|
|
@ -1,5 +1,20 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
clear-sans = pkgs.stdenv.mkDerivation {
|
||||
name = "clear-sans";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/resir014/Clear-Sans-Webfont/97eec13/fonts/TTF/ClearSans-Regular.ttf";
|
||||
sha256 = "0vzhy3l056gj5vkcs1kglr4mr0546fq093v78i4ri8xni7w1m0dv";
|
||||
};
|
||||
dontUnpack = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp $src $out/share/fonts/truetype/ClearSans-Regular.ttf
|
||||
'';
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
|
|
@ -10,7 +25,7 @@
|
|||
(nerdfonts.override { fonts = [ "0xProto" "FiraCode" "JetBrainsMono" "Hack" "Noto" "NerdFontsSymbolsOnly" ]; })
|
||||
ipafont
|
||||
kochi-substitute
|
||||
# Custom BinaryClock font
|
||||
clear-sans
|
||||
(stdenv.mkDerivation {
|
||||
name = "binary-clock-font";
|
||||
src = fetchurl {
|
||||
|
|
@ -27,8 +42,8 @@
|
|||
fontconfig = {
|
||||
enable = true;
|
||||
defaultFonts = {
|
||||
monospace = [ "JetBrains Mono" "Noto Sans Mono CJK JP" ];
|
||||
sansSerif = [ "Noto Sans" "Noto Sans CJK JP" ];
|
||||
monospace = [ "0xProto Nerd Font" "Noto Sans Mono CJK JP" ];
|
||||
sansSerif = [ "Clear Sans" "Noto Sans CJK JP" ];
|
||||
serif = [ "Noto Serif" "Noto Serif CJK JP" ];
|
||||
emoji = [ "Noto Color Emoji" ];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue