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 = {
enable = true;
defaultFonts.monospace = [ "Berkeley Mono" ];
defaultFonts.monospace = [ "BerkeleyMono Nerd Font" ];
};
fonts.fonts = with pkgs; [
(fetchzip {
url = "file://" + ./fonts/berkeley.tar.xz;
sha256 = "sha256-V3X8RFZdz3hNd8tbrXDkP6c18pGUuE62uQcmFiE0AbM=";
sha256 = "sha256-nsDqdQikT65vJVMq7r2MAOxd3xqj8vJ0Ky2y9CfI/bg==";
})
(fetchzip {
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 = {
visibleName = "peninsula";
default = true;
font = "Berkeley Mono";
font = "BerkeleyMono Nerd Font";
colors = {
foregroundColor = "#838394949696";
backgroundColor = "#00002B2B3636";

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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