Add custom font
This commit is contained in:
		
							parent
							
								
									eacdcb1d45
								
							
						
					
					
						commit
						16af035eb3
					
				
					 5 changed files with 44 additions and 20 deletions
				
			
		|  | @ -38,6 +38,10 @@ | ||||||
|         allowUnfree = true; |         allowUnfree = true; | ||||||
|       }; |       }; | ||||||
| 
 | 
 | ||||||
|  |       sharedOverlays = [ | ||||||
|  |         (import ./overlays/letter) | ||||||
|  |       ]; | ||||||
|  | 
 | ||||||
|       hostDefaults = { |       hostDefaults = { | ||||||
|         inherit system; |         inherit system; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -15,6 +15,11 @@ | ||||||
|     keep-derivations = true |     keep-derivations = true | ||||||
|   ''; |   ''; | ||||||
| 
 | 
 | ||||||
|  |   fonts.fonts = with pkgs; [ | ||||||
|  |     corefonts      # Calibri for Uni | ||||||
|  |     letter         # Personal font | ||||||
|  |   ]; | ||||||
|  | 
 | ||||||
|   users.users.tdpeuter = { |   users.users.tdpeuter = { | ||||||
|     description = "Tibo De Peuter"; |     description = "Tibo De Peuter"; | ||||||
|     isNormalUser = true; |     isNormalUser = true; | ||||||
|  | @ -51,9 +56,6 @@ | ||||||
| 
 | 
 | ||||||
|       packages = with pkgs; [ |       packages = with pkgs; [ | ||||||
|         gnupg   |         gnupg   | ||||||
|          |  | ||||||
|         # Fonts |  | ||||||
|         corefonts      # Calibri for Uni |  | ||||||
|       ]; |       ]; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
							
								
								
									
										18
									
								
								nixos/overlays/letter/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								nixos/overlays/letter/default.nix
									
										
									
									
									
										Normal 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 | ||||||
|  |     ''; | ||||||
|  |   }; | ||||||
|  | } | ||||||
|  | @ -102,41 +102,41 @@ window: | ||||||
|   #multiplier: 3 |   #multiplier: 3 | ||||||
| 
 | 
 | ||||||
| # Font configuration | # Font configuration | ||||||
| # font: | font: | ||||||
|   # Normal (roman) font face |   # Normal (roman) font face | ||||||
|   # normal: |   normal: | ||||||
|     # Font family |     # Font family | ||||||
|     # |     # | ||||||
|     # Default: |     # Default: | ||||||
|     #   - (macOS) Menlo |     #   - (macOS) Menlo | ||||||
|     #   - (Linux/BSD) monospace |     #   - (Linux/BSD) monospace | ||||||
|     #   - (Windows) Consolas |     #   - (Windows) Consolas | ||||||
|     # family: Letter |     family: Letter | ||||||
| 
 | 
 | ||||||
|     # The `style` can be specified to pick a specific face. |     # The `style` can be specified to pick a specific face. | ||||||
|     # style: Extended |     style: Extended | ||||||
| 
 | 
 | ||||||
|   # Bold font face |   # Bold font face | ||||||
|   # bold: |   bold: | ||||||
|     # Font family |     # Font family | ||||||
|     # |     # | ||||||
|     # If the bold family is not specified, it will fall back to the |     # If the bold family is not specified, it will fall back to the | ||||||
|     # value specified for the normal font. |     # value specified for the normal font. | ||||||
|     # family: Letter |     family: Letter | ||||||
| 
 | 
 | ||||||
|     # The `style` can be specified to pick a specific face. |     # The `style` can be specified to pick a specific face. | ||||||
|     # style: Heavy |     style: Heavy | ||||||
| 
 | 
 | ||||||
|   # Italic font face |   # Italic font face | ||||||
|   # italic: |   italic: | ||||||
|     # Font family |     # Font family | ||||||
|     # |     # | ||||||
|     # If the italic family is not specified, it will fall back to the |     # If the italic family is not specified, it will fall back to the | ||||||
|     # value specified for the normal font. |     # value specified for the normal font. | ||||||
|     # family: Letter |     family: Letter | ||||||
| 
 | 
 | ||||||
|     # The `style` can be specified to pick a specific face. |     # The `style` can be specified to pick a specific face. | ||||||
|     # style: Oblique |     style: Oblique | ||||||
| 
 | 
 | ||||||
|   # Bold italic font face |   # Bold italic font face | ||||||
|   #bold_italic: |   #bold_italic: | ||||||
|  |  | ||||||
|  | @ -8,10 +8,10 @@ include ./themes/tdpeuter-dark.conf | ||||||
| #: individual font faces and even specify special fonts for particular | #: individual font faces and even specify special fonts for particular | ||||||
| #: characters. | #: characters. | ||||||
| 
 | 
 | ||||||
| # font_family      monospace | font_family      Letter Extended | ||||||
| # bold_font        auto | bold_font        Letter Semibold Extended | ||||||
| # italic_font      auto | italic_font      Letter Extended Oblique | ||||||
| # bold_italic_font auto | bold_italic_font Letter Semibold Extended Oblique | ||||||
| 
 | 
 | ||||||
| #: You can specify different fonts for the bold/italic/bold-italic | #: You can specify different fonts for the bold/italic/bold-italic | ||||||
| #: variants. To get a full list of supported fonts use the `kitty | #: 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] | #:     narrow_symbols codepoints [optionally the number of cells] | ||||||
| 
 | 
 | ||||||
| # disable_ligatures never | disable_ligatures always | ||||||
| 
 | 
 | ||||||
| #: Choose how you want to handle multi-character ligatures. The | #: Choose how you want to handle multi-character ligatures. The | ||||||
| #: default is to always render them. You can tell kitty to not render | #: default is to always render them. You can tell kitty to not render | ||||||
|  | @ -363,7 +363,7 @@ touch_scroll_multiplier 2.0 | ||||||
| #: much effort. | #: much effort. | ||||||
| 
 | 
 | ||||||
| url_color #94E2D5 | url_color #94E2D5 | ||||||
| url_style stright | url_style straight | ||||||
| 
 | 
 | ||||||
| #: The color and style for highlighting URLs on mouse-over. url_style | #: The color and style for highlighting URLs on mouse-over. url_style | ||||||
| #: can be one of: none, straight, double, curly, dotted, dashed. | #: can be one of: none, straight, double, curly, dotted, dashed. | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue