home: Refine terminal fount selection

This commit is contained in:
Mikael 2024-09-20 20:44:50 +02:00
parent 4a2798aaea
commit 24296fcbd1
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0
4 changed files with 12 additions and 4 deletions

View file

@ -19,6 +19,7 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
monospace = [ monospace = [
"Fira Code" "Fira Code"
"Julia Mono"
"M PLUS 1 Code" "M PLUS 1 Code"
"Noto Sans Mono" "Noto Sans Mono"
"Symbols Nerd Font Mono" "Symbols Nerd Font Mono"
@ -29,6 +30,7 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
julia-mono
lato lato
self.packages.${pkgs.system}.fira-code self.packages.${pkgs.system}.fira-code
mplus-outline-fonts.githubRelease mplus-outline-fonts.githubRelease

View file

@ -154,7 +154,7 @@ in {
end end
echo -n -s (set_color $user_colour --bold) $USER@ (prompt_hostname) \ echo -n -s (set_color $user_colour --bold) $USER@ (prompt_hostname) \
(set_color blue --bold) ' ' (prompt_pwd) ' ' (set_color normal) (set_color blue --bold) ' ' (prompt_pwd) ' ' (set_color normal)
''; '';
fish_right_prompt = '' fish_right_prompt = ''

View file

@ -11,7 +11,14 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
programs.kitty = { programs.kitty = {
enable = true; enable = true;
theme = "Catppuccin-Mocha"; theme = "Catppuccin-Mocha";
settings = { settings = let
regular = "family='Fira Code' features='+cv01 +cv06 +onum +ss01 +ss03 +ss06 +ss07 +ss08 +zero'";
in {
font_family = "${regular} style=Regular";
bold_font = "${regular} style=SemiBold";
italic_font = "Julia Mono";
bold_italic_font = "Julia Mono";
disable_ligatures = "cursor"; disable_ligatures = "cursor";
cursor_blink_interval = 0; cursor_blink_interval = 0;

View file

@ -16,8 +16,7 @@ stdenv.mkDerivation (finalAttrs: {
runHook preInstall runHook preInstall
install -D -m 0644 -t "$out/share/fonts" \ install -D -m 0644 -t "$out/share/fonts" \
"ttf/Fira Code/"*.ttf \ "variable_ttf/Fira Code/FiraCode-VF.ttf"
"variable_ttf/Fira Code/"*.ttf
runHook postInstall runHook postInstall
''; '';