Add custom font

This commit is contained in:
Tibo De Peuter 2023-10-11 22:39:54 +02:00
parent eacdcb1d45
commit 16af035eb3
5 changed files with 44 additions and 20 deletions

View file

@ -38,6 +38,10 @@
allowUnfree = true;
};
sharedOverlays = [
(import ./overlays/letter)
];
hostDefaults = {
inherit system;

View file

@ -15,6 +15,11 @@
keep-derivations = true
'';
fonts.fonts = with pkgs; [
corefonts # Calibri for Uni
letter # Personal font
];
users.users.tdpeuter = {
description = "Tibo De Peuter";
isNormalUser = true;
@ -51,9 +56,6 @@
packages = with pkgs; [
gnupg
# Fonts
corefonts # Calibri for Uni
];
};

View file

@ -0,0 +1,18 @@
final: prev: {
letter = final.stdenv.mkDerivation {
name = "letter";
version = "v1.0.0";
src = final.fetchFromGitea {
domain = "git.depeuter.dev";
owner = "tdpeuter";
repo = "letter";
rev = "v1.0.0";
hash = "sha256-2HaXZMIYSauqj9Cy7rRzYGyuYLno9AHAXpWsyD+BdtE=";
};
installPhase = ''
mkdir -p $out/share/fonts
cp -R $src/ttf $out/share/fonts/letter
'';
};
}

View file

@ -102,41 +102,41 @@ window:
#multiplier: 3
# Font configuration
# font:
font:
# Normal (roman) font face
# normal:
normal:
# Font family
#
# Default:
# - (macOS) Menlo
# - (Linux/BSD) monospace
# - (Windows) Consolas
# family: Letter
family: Letter
# The `style` can be specified to pick a specific face.
# style: Extended
style: Extended
# Bold font face
# bold:
bold:
# Font family
#
# If the bold family is not specified, it will fall back to the
# value specified for the normal font.
# family: Letter
family: Letter
# The `style` can be specified to pick a specific face.
# style: Heavy
style: Heavy
# Italic font face
# italic:
italic:
# Font family
#
# If the italic family is not specified, it will fall back to the
# value specified for the normal font.
# family: Letter
family: Letter
# The `style` can be specified to pick a specific face.
# style: Oblique
style: Oblique
# Bold italic font face
#bold_italic:

View file

@ -8,10 +8,10 @@ include ./themes/tdpeuter-dark.conf
#: individual font faces and even specify special fonts for particular
#: characters.
# font_family monospace
# bold_font auto
# italic_font auto
# bold_italic_font auto
font_family Letter Extended
bold_font Letter Semibold Extended
italic_font Letter Extended Oblique
bold_italic_font Letter Semibold Extended Oblique
#: You can specify different fonts for the bold/italic/bold-italic
#: variants. To get a full list of supported fonts use the `kitty
@ -77,7 +77,7 @@ include ./themes/tdpeuter-dark.conf
#: narrow_symbols codepoints [optionally the number of cells]
# disable_ligatures never
disable_ligatures always
#: Choose how you want to handle multi-character ligatures. The
#: default is to always render them. You can tell kitty to not render
@ -363,7 +363,7 @@ touch_scroll_multiplier 2.0
#: much effort.
url_color #94E2D5
url_style stright
url_style straight
#: The color and style for highlighting URLs on mouse-over. url_style
#: can be one of: none, straight, double, curly, dotted, dashed.