dotfiles/home/config/fonts/default.nix

50 lines
911 B
Nix
Raw Normal View History

2023-06-26 18:41:47 +00:00
{ pkgs, ... }:
2023-10-06 20:29:19 +00:00
let
2024-05-28 19:25:10 +00:00
berkeley-mono = pkgs.stdenvNoCC.mkDerivation {
2023-10-06 20:29:19 +00:00
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
2024-05-28 19:25:10 +00:00
nerdfonts = pkgs.stdenvNoCC.mkDerivation {
2023-11-28 16:09:38 +00:00
pname = "nerdfonts";
2024-04-12 20:16:03 +00:00
version = "3.2.1";
2023-11-28 16:09:38 +00:00
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
];
}