From cdc88dd4ee8775fbbde00821a20fe14d40b00f91 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Thu, 28 Dec 2023 18:23:56 +0100 Subject: [PATCH] Set default font --- home/features/desktop/common/alacritty.nix | 14 ++++++++++++++ home/features/desktop/common/default.nix | 1 + home/features/desktop/common/font.nix | 13 +++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 home/features/desktop/common/font.nix diff --git a/home/features/desktop/common/alacritty.nix b/home/features/desktop/common/alacritty.nix index 5e09cf0..6b1566f 100644 --- a/home/features/desktop/common/alacritty.nix +++ b/home/features/desktop/common/alacritty.nix @@ -12,6 +12,20 @@ y = 5; }; }; + font = { + normal = { + family = "${config.fontProfiles.monospace.family}"; + style = "Medium"; + }; + bold = { + family = "${config.fontProfiles.monospace.family}"; + style = "Bold"; + }; + italic = { + family = "${config.fontProfiles.monospace.family}"; + style = "MediumItalic"; + }; + }; colors = with config.colorScheme.colors; { bright = { black = "0x${base00}"; diff --git a/home/features/desktop/common/default.nix b/home/features/desktop/common/default.nix index df9100d..ac725e3 100644 --- a/home/features/desktop/common/default.nix +++ b/home/features/desktop/common/default.nix @@ -2,6 +2,7 @@ imports = [ ./firefox.nix ./alacritty.nix + ./font.nix ./playerctl.nix ]; } diff --git a/home/features/desktop/common/font.nix b/home/features/desktop/common/font.nix new file mode 100644 index 0000000..89d0f87 --- /dev/null +++ b/home/features/desktop/common/font.nix @@ -0,0 +1,13 @@ +{pkgs, ...}: { + fontProfiles = { + enable = true; + monospace = { + family = "JetBrains Mono Nerd Font"; + package = pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];}; + }; + regular = { + family = "Fira Sans"; + package = pkgs.fira; + }; + }; +}