refactor(stylix): move fonts config into 'stylix/theme'
check / lint (push) Successful in 16s

This commit is contained in:
2026-08-22 22:38:33 +02:00
parent fd670455d4
commit 8ef45d0422
3 changed files with 14 additions and 16 deletions
+1 -6
View File
@@ -20,13 +20,8 @@ in
base16Scheme
override
image
fonts
;
fonts = {
monospace = theme.monospaceFont;
serif = config.stylix.fonts.monospace;
sansSerif = config.stylix.fonts.monospace;
emoji = config.stylix.fonts.monospace;
};
targets = import ../../../modules/stylix/targets.nix;
};
};
+1 -7
View File
@@ -23,14 +23,8 @@ in
base16Scheme
override
image
fonts
;
fonts = {
monospace = theme.monospaceFont;
serif = config.stylix.fonts.monospace;
sansSerif = config.stylix.fonts.monospace;
emoji = config.stylix.fonts.monospace;
};
autoEnable = true;
targets.regreet.enable = false;
};
+12 -3
View File
@@ -1,5 +1,11 @@
{ pkgs }:
let
monospaceFont = {
package = pkgs.iosevka-bin.override { variant = "SS08"; };
name = "Iosevka Term SS08";
};
in
{
polarity = "dark";
base16Scheme = ./zenwritten-dark.yaml;
@@ -9,8 +15,11 @@
image = pkgs.runCommand "solid-bg.png" { nativeBuildInputs = [ pkgs.imagemagick ]; } ''
magick -size 1x1 xc:#191919 $out
'';
monospaceFont = {
package = pkgs.iosevka-bin.override { variant = "SS08"; };
name = "Iosevka Term SS08";
inherit monospaceFont;
fonts = {
monospace = monospaceFont;
serif = monospaceFont;
sansSerif = monospaceFont;
emoji = monospaceFont;
};
}