me like nix
0

Configure Feed

Select the types of activity you want to include in your feed.

add font

author
Sean Aye
date (Mar 22, 2026, 8:03 PM -0400) commit 1060cc69 parent f8303aaf change-id qlxzsvpv
+50 -1
+20
berkely-mono/berkeley.nix
··· 1 + { pkgs }: 2 + 3 + pkgs.stdenv.mkDerivation { 4 + pname = "berkeley-mono-typeface"; 5 + version = "2.003"; 6 + 7 + src = ./patched; 8 + 9 + dontUnpack = true; 10 + 11 + installPhase = '' 12 + runHook preInstall 13 + 14 + install -Dm644 $src/*.ttf -t $out/share/fonts/truetype 15 + runHook postInstall 16 + ''; 17 + 18 + # Add fontconfig as a build input 19 + nativeBuildInputs = [ pkgs.fontconfig ]; 20 + }
+20
hosts/common/common.nix
··· 1 1 { pkgs, ... }: 2 2 3 + let 4 + berkeley-mono-typeface = pkgs.callPackage ../../berkely-mono/berkeley.nix { }; 5 + in 3 6 { 4 7 5 8 nix.settings.experimental-features = [ ··· 40 43 LC_PAPER = "en_US.UTF-8"; 41 44 LC_TELEPHONE = "en_US.UTF-8"; 42 45 LC_TIME = "en_US.UTF-8"; 46 + }; 47 + 48 + # Font configuration 49 + fonts = { 50 + fontDir.enable = true; 51 + fontconfig = { 52 + enable = true; 53 + defaultFonts = { 54 + monospace = [ 55 + "BerkeleyMono Nerd Font" 56 + "BerkeleyMono" 57 + ]; 58 + }; 59 + }; 60 + packages = with pkgs; [ 61 + berkeley-mono-typeface 62 + ]; 43 63 }; 44 64 45 65 programs.niri = {
+9
hosts/common/home.nix
··· 413 413 glycin-loaders # various format loaders for loupe 414 414 415 415 # --- FONTS ARE IMPORTANT --- 416 + # Berkeley Mono is the main system font, keeping JetBrains and Font Awesome for waybar 417 + font-awesome 416 418 noto-fonts 417 419 noto-fonts-cjk-sans 418 420 noto-fonts-emoji ··· 519 521 window = { 520 522 decorations = "none"; 521 523 opacity = 0.9; 524 + }; 525 + font = { 526 + normal = { 527 + family = "BerkeleyMono Nerd Font"; 528 + style = "Regular"; 529 + }; 530 + size = 12.0; 522 531 }; 523 532 }; 524 533
+1 -1
hosts/common/waybar/style.css
··· 1 1 * { 2 - font-family: "JetBrainsMono Nerd Font", "Font Awesome 6 Free", monospace; 2 + font-family: "BerkeleyMono Nerd Font", "Font Awesome 6 Free", monospace; 3 3 font-size: 14px; 4 4 min-height: 0; 5 5 }