NerdFont-ify default berkeley font

This commit is contained in:
Cyryl Płotnicki 2023-06-21 09:54:10 +01:00
parent e6acf82146
commit e0608fd176
10 changed files with 19 additions and 31 deletions

View file

@ -80,13 +80,13 @@ in {
fonts.fontconfig = { fonts.fontconfig = {
enable = true; enable = true;
defaultFonts.monospace = [ "Berkeley Mono" ]; defaultFonts.monospace = [ "BerkeleyMono Nerd Font" ];
}; };
fonts.fonts = with pkgs; [ fonts.fonts = with pkgs; [
(fetchzip { (fetchzip {
url = "file://" + ./fonts/berkeley.tar.xz; url = "file://" + ./fonts/berkeley.tar.xz;
sha256 = "sha256-V3X8RFZdz3hNd8tbrXDkP6c18pGUuE62uQcmFiE0AbM="; sha256 = "sha256-nsDqdQikT65vJVMq7r2MAOxd3xqj8vJ0Ky2y9CfI/bg==";
}) })
(fetchzip { (fetchzip {
url = "file://" + ./fonts/tragicastle.tar.xz; url = "file://" + ./fonts/tragicastle.tar.xz;

4
nixos/fonts/README.md Normal file
View file

@ -0,0 +1,4 @@
* mv all *.otf and *.ttf into one dir
* `fd --exec nix run nixpkgs#nerd-font-patcher -- --progressbars --careful -c {}`
* tar.xz
*

Binary file not shown.

View file

@ -29,7 +29,7 @@
cyplo = { cyplo = {
visibleName = "peninsula"; visibleName = "peninsula";
default = true; default = true;
font = "Berkeley Mono"; font = "BerkeleyMono Nerd Font";
colors = { colors = {
foregroundColor = "#838394949696"; foregroundColor = "#838394949696";
backgroundColor = "#00002B2B3636"; backgroundColor = "#00002B2B3636";

View file

@ -17,7 +17,7 @@
}; };
font = { font = {
family = "Berkeley Mono"; family = "BerkeleyMono Nerd Font";
size = 12; size = 12;
}; };

View file

@ -1,9 +1,5 @@
{ { config, pkgs, ... }: {
config, home.sessionVariables = { TERMINAL = "kitty"; };
pkgs,
...
}: {
home.sessionVariables = {TERMINAL = "kitty";};
programs.kitty = { programs.kitty = {
enable = true; enable = true;
@ -11,7 +7,7 @@
enable_audio_bell = false; enable_audio_bell = false;
font_size = "16.0"; font_size = "16.0";
font_family = "Berkeley Mono"; font_family = "BerkeleyMono Nerd Font";
bold_font = "auto"; bold_font = "auto";
italic_font = "auto"; italic_font = "auto";
bold_italic_font = "auto"; bold_italic_font = "auto";

View file

@ -1,9 +1,5 @@
{ { config, pkgs, ... }: {
config, home.sessionVariables = { TERMINAL = "termite"; };
pkgs,
...
}: {
home.sessionVariables = {TERMINAL = "termite";};
programs.termite = { programs.termite = {
enable = true; enable = true;
allowBold = true; allowBold = true;
@ -12,7 +8,7 @@
dynamicTitle = true; dynamicTitle = true;
mouseAutohide = true; mouseAutohide = true;
scrollOnKeystroke = false; scrollOnKeystroke = false;
font = "Berkeley Mono 12"; font = "BerkeleyMono Nerd Font 12";
backgroundColor = "#002b36"; backgroundColor = "#002b36";
foregroundColor = "#839496"; foregroundColor = "#839496";

View file

@ -1,13 +1,9 @@
{ { config, pkgs, ... }: {
config,
pkgs,
...
}: {
services.dunst = { services.dunst = {
enable = true; enable = true;
settings = { settings = {
global = { global = {
font = "Berkeley Mono 10"; font = "BerkeleyMono Nerd Font 10";
sort = "yes"; sort = "yes";
indicate_hidden = "yes"; indicate_hidden = "yes";
word_wrap = "yes"; word_wrap = "yes";

View file

@ -48,7 +48,7 @@ in {
colors.background = "#001e26"; colors.background = "#001e26";
colors.statusline = "#708183"; colors.statusline = "#708183";
fonts = { fonts = {
names = [ "Berkeley Mono" "Font Awesome 6 Free" ]; names = [ "BerkeleyMono Nerd Font" ];
size = 10.0; size = 10.0;
}; };

View file

@ -1,11 +1,7 @@
{ { config, pkgs, ... }: {
config,
pkgs,
...
}: {
programs.rofi = { programs.rofi = {
enable = true; enable = true;
font = "Berkeley Mono 16"; font = "BerkeleyMono Nerd Font 16";
theme = "solarized"; theme = "solarized";
}; };
} }