diff --git a/home/config/fonts.nix b/home/config/fonts.nix index b2ef0d8..efd711b 100644 --- a/home/config/fonts.nix +++ b/home/config/fonts.nix @@ -1,7 +1,28 @@ { pkgs, ... }: +let + berkeley-mono = pkgs.stdenvNoCC.mkDerivation rec { + pname = "berkeley-mono"; + version = "1.009"; + + src = ../../secret/fonts/BerkeleyMono; + + dontPatch = true; + dontConfigure = true; + dontBuild = true; + doCheck = false; + dontFixup = true; + + installPhase = '' + runHook preInstall + install -Dm644 -t $out/share/fonts/opentype/ *.otf + runHook postInstall + ''; + }; +in { home.packages = with pkgs; [ + berkeley-mono jetbrains-mono noto-fonts unifont diff --git a/home/config/wezterm/config.fnl b/home/config/wezterm/config.fnl index fd60c5c..9aab651 100644 --- a/home/config/wezterm/config.fnl +++ b/home/config/wezterm/config.fnl @@ -104,8 +104,8 @@ :tab_max_width 42 :window_frame {:active_titlebar_bg colors.frame-background :inactive_titlebar_bg colors.frame-background - :font (wezterm.font {:family "JetBrains Mono" - :weight :Medium}) + :font (wezterm.font {:family "Berkeley Mono" + :weight :Regular}) :font_size 11} :colors {:tab_bar {:background colors.frame-background :inactive_tab_edge colors.frame-background @@ -114,8 +114,8 @@ :new_tab_hover {:bg_color colors.hover-background :fg_color colors.hover-foreground}}} ;; Fonts - :font (wezterm.font_with_fallback [{:family "JetBrains Mono" - :weight :Medium} + :font (wezterm.font_with_fallback [{:family "Berkeley Mono" + :weight :Regular} "Symbols Nerd Font" "Apple Symbols" "Apple Color Emoji" diff --git a/secret/fonts/BerkeleyMono/BerkeleyMono-Bold.otf b/secret/fonts/BerkeleyMono/BerkeleyMono-Bold.otf new file mode 100644 index 0000000..d3de740 Binary files /dev/null and b/secret/fonts/BerkeleyMono/BerkeleyMono-Bold.otf differ diff --git a/secret/fonts/BerkeleyMono/BerkeleyMono-BoldItalic.otf b/secret/fonts/BerkeleyMono/BerkeleyMono-BoldItalic.otf new file mode 100644 index 0000000..7cfd73c Binary files /dev/null and b/secret/fonts/BerkeleyMono/BerkeleyMono-BoldItalic.otf differ diff --git a/secret/fonts/BerkeleyMono/BerkeleyMono-Italic.otf b/secret/fonts/BerkeleyMono/BerkeleyMono-Italic.otf new file mode 100644 index 0000000..d7593e7 Binary files /dev/null and b/secret/fonts/BerkeleyMono/BerkeleyMono-Italic.otf differ diff --git a/secret/fonts/BerkeleyMono/BerkeleyMono-Regular.otf b/secret/fonts/BerkeleyMono/BerkeleyMono-Regular.otf new file mode 100644 index 0000000..c899ef3 Binary files /dev/null and b/secret/fonts/BerkeleyMono/BerkeleyMono-Regular.otf differ