aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-11-15 07:52:49 -0800
committerFranck Cuny <franck@fcuny.net>2022-11-15 07:52:49 -0800
commiteb57a78a132f2e61ff641701635ef7982b67c366 (patch)
treec85c76a51ea3dc02f970dacbc16a8e7d2a7b0664
parentref(home/alacritty): use cascadia and larger font size (diff)
downloadinfra-eb57a78a132f2e61ff641701635ef7982b67c366.tar.gz
feat(fonts): add iosevka to the list of fonts
Replace the use of Source Code Pro with Iosevka in a few applications (sway, waybar, alacritty).
-rw-r--r--home/terminal/alacritty/default.nix4
-rw-r--r--home/wm/sway/default.nix2
-rw-r--r--home/wm/waybar/style.css2
-rw-r--r--modules/system/fonts/default.nix16
4 files changed, 18 insertions, 6 deletions
diff --git a/home/terminal/alacritty/default.nix b/home/terminal/alacritty/default.nix
index a8a899a..f5fabd7 100644
--- a/home/terminal/alacritty/default.nix
+++ b/home/terminal/alacritty/default.nix
@@ -12,8 +12,8 @@ in
draw_bold_text_with_bright_colors = true;
selection = { save_to_clipboard = true; };
font = {
- size = 14;
- normal.family = "Cascadia Code";
+ size = 13;
+ normal.family = "Iosevka Term Extended";
};
cursor = {
style.blinking = "Never";
diff --git a/home/wm/sway/default.nix b/home/wm/sway/default.nix
index d3b758d..7433c38 100644
--- a/home/wm/sway/default.nix
+++ b/home/wm/sway/default.nix
@@ -34,7 +34,7 @@ in
menu = ''${pkgs.wofi}/bin/wofi -S drun -p "app:" -L 10'';
bars = [ ];
fonts = {
- names = [ "Source Code Pro" ];
+ names = [ "iosevka extended" ];
size = 10.0;
};
keybindings = lib.mkOptionDefault {
diff --git a/home/wm/waybar/style.css b/home/wm/waybar/style.css
index e4565c8..d50dd3d 100644
--- a/home/wm/waybar/style.css
+++ b/home/wm/waybar/style.css
@@ -6,7 +6,7 @@
padding: 0;
}
#waybar {
- font-family: Source Code Pro;
+ font-family: Iosevka Extended;
font-size: 15px;
}
window#waybar {
diff --git a/modules/system/fonts/default.nix b/modules/system/fonts/default.nix
index ab5117d..acef713 100644
--- a/modules/system/fonts/default.nix
+++ b/modules/system/fonts/default.nix
@@ -1,5 +1,10 @@
{ pkgs, config, lib, ... }:
-let cfg = config.my.systems.fonts;
+let
+ cfg = config.my.systems.fonts;
+ iosevka-aile = pkgs.iosevka-bin.override { variant = "aile"; };
+ iosevka-curly = pkgs.iosevka-bin.override { variant = "curly"; };
+ iosevka-etoile = pkgs.iosevka-bin.override { variant = "etoile"; };
+ iosevka-slab = pkgs.iosevka-bin.override { variant = "slab"; };
in
{
options.my.systems.fonts = with lib; {
@@ -12,8 +17,16 @@ in
fontDir.enable = true;
fontconfig.enable = true;
fonts = with pkgs; [
+ cascadia-code
dejavu_fonts
+ fira-code
font-awesome_5
+ iosevka
+ iosevka-aile
+ iosevka-bin
+ iosevka-curly
+ iosevka-etoile
+ iosevka-slab
noto-fonts
noto-fonts-cjk # Chinese, Japanese, Korean
noto-fonts-emoji
@@ -22,7 +35,6 @@ in
source-code-pro
source-sans-pro
source-serif-pro
- cascadia-code
];
fontconfig.defaultFonts = { monospace = [ "Source Code Pro" ]; };