Switch sans-serif font to Cantarell

This commit is contained in:
Erwin Boskma 2025-01-09 14:59:30 +01:00
parent cccdd870b7
commit 9df5301f0f
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg
4 changed files with 24 additions and 33 deletions

View file

@ -453,7 +453,7 @@
programs = {
sway = {
enable = true;
package = pkgs.swayfx;
# package = pkgs.swayfx;
wrapperFeatures = {
gtk = true;
base = true;

View file

@ -18,10 +18,7 @@
desktop = {
enable = false;
};
fonts = {
enable = false;
iosevka-aile = false;
};
fonts.enable = false;
gnome.enable = false;
klipper.enable = true;
lightdm.enable = false;

View file

@ -13,42 +13,36 @@ in
{
options.eboskma.fonts = {
enable = mkEnableOption "activate fonts";
iosevka-aile = mkOption {
description = "Install Iosevka Aile";
type = types.bool;
default = true;
};
};
config = mkIf cfg.enable {
fonts = {
fontDir.enable = true;
packages =
with pkgs;
[
nerd-fonts.iosevka
nerd-fonts.meslo-lg
nerd-fonts.monaspace
nerd-fonts.noto
nerd-fonts.recursive-mono
corefonts
dejavu_fonts
google-fonts
kochi-substitute
material-icons
monaspace
noto-fonts-emoji
recursive
ttf_bitstream_vera
twitter-color-emoji
]
++ lib.optional cfg.iosevka-aile iosevka-aile;
packages = with pkgs; [
nerd-fonts.iosevka
nerd-fonts.meslo-lg
nerd-fonts.monaspace
nerd-fonts.noto
nerd-fonts.recursive-mono
cantarell-fonts
corefonts
dejavu_fonts
google-fonts
kochi-substitute
material-icons
monaspace
noto-fonts-emoji
recursive
ttf_bitstream_vera
twitter-color-emoji
iosevka-aile
];
fontconfig = {
defaultFonts = {
serif = [ "Recursive Sans Casual Static Medium" ];
sansSerif = [ (if cfg.iosevka-aile then "Iosevka Aile" else "DejaVu Sans") ];
sansSerif = [ "Cantarell Regular" ];
monospace = [ "Iosevka Nerd Font" ];
emoji = [ "Twitter Color Emoji" ];
};

View file

@ -54,9 +54,9 @@ in
};
font = {
name = "Monaspace Neon";
name = "Cantarell Regular";
size = 16;
package = pkgs.monaspace;
package = pkgs.cantarell-fonts;
};
settings = {