1
0
Fork 0
dotfiles/home/config/fonts/default.nix

50 lines
911 B
Nix
Raw Normal View History

2023-06-26 20:41:47 +02:00
{ pkgs, ... }:
2023-10-06 22:29:19 +02:00
let
2024-05-28 21:25:10 +02:00
berkeley-mono = pkgs.stdenvNoCC.mkDerivation {
2023-10-06 22:29:19 +02:00
pname = "berkeley-mono";
version = "1.009";
2023-11-28 17:09:38 +01:00
src = ../../../secret/fonts/BerkeleyMono;
2023-10-06 22:29:19 +02: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 17:09:38 +01:00
2024-05-28 21:25:10 +02:00
nerdfonts = pkgs.stdenvNoCC.mkDerivation {
2023-11-28 17:09:38 +01:00
pname = "nerdfonts";
2024-12-22 23:41:02 +01:00
version = "3.3.0";
2023-11-28 17:09:38 +01: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 22:29:19 +02:00
in
2023-06-26 20:41:47 +02:00
{
home.packages = with pkgs; [
2023-10-06 22:29:19 +02:00
berkeley-mono
2023-06-26 20:41:47 +02:00
jetbrains-mono
2023-11-28 17:09:38 +01:00
nerdfonts
2023-06-26 20:41:47 +02:00
noto-fonts
];
}