dotfiles/home/config/fonts/default.nix

50 lines
919 B
Nix
Raw Normal View History

2023-06-26 18:41:47 +00:00
{ pkgs, ... }:
2023-10-06 20:29:19 +00:00
let
berkeley-mono = pkgs.stdenvNoCC.mkDerivation rec {
pname = "berkeley-mono";
version = "1.009";
2023-11-28 16:09:38 +00:00
src = ../../../secret/fonts/BerkeleyMono;
2023-10-06 20:29:19 +00:00
dontPatch = true;
dontConfigure = true;
dontBuild = true;
doCheck = false;
dontFixup = true;
installPhase = ''
runHook preInstall
install -Dm644 -t $out/share/fonts/opentype/ *.otf
runHook postInstall
'';
};
2023-11-28 16:09:38 +00:00
nerdfonts = pkgs.stdenvNoCC.mkDerivation rec {
pname = "nerdfonts";
version = "3.1.1";
src = ./NerdFonts;
dontPatch = true;
dontConfigure = true;
dontBuild = true;
doCheck = false;
dontFixup = true;
installPhase = ''
runHook preInstall
install -Dm644 -t $out/share/fonts/truetype/ *.ttf
runHook postInstall
'';
};
2023-10-06 20:29:19 +00:00
in
2023-06-26 18:41:47 +00:00
{
home.packages = with pkgs; [
2023-10-06 20:29:19 +00:00
berkeley-mono
2023-06-26 18:41:47 +00:00
jetbrains-mono
2023-11-28 16:09:38 +00:00
nerdfonts
2023-06-26 18:41:47 +00:00
noto-fonts
];
}