configuration.nix/system/stylix-config.nix

45 lines
948 B
Nix
Raw Normal View History

2024-05-04 20:57:33 +02:00
{
config,
pkgs,
}: let
cfg = config.jconfig.styling;
2024-05-04 20:57:33 +02:00
nerdFontSymbols = pkgs.nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];};
2024-01-19 17:13:40 +01:00
fallbackSymbols = {
name = "Symbols Nerd Font";
package = nerdFontSymbols;
};
2024-05-04 20:57:33 +02:00
in {
autoEnable = cfg.enable;
2024-01-14 17:33:16 +01:00
image = cfg.wallpaper;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
polarity = "dark";
2024-01-19 17:13:40 +01:00
fonts.monospace = [
{
name = "JetBrains Mono";
package = pkgs.jetbrains-mono;
}
2024-01-19 17:13:40 +01:00
fallbackSymbols
];
fonts.sansSerif = [
{
name = "Noto Sans";
package = pkgs.noto-fonts;
}
2024-01-19 17:13:40 +01:00
fallbackSymbols
];
fonts.serif = [
{
name = "Noto Serif";
package = pkgs.noto-fonts;
}
2024-01-19 17:13:40 +01:00
fallbackSymbols
];
fonts.emoji = {
package = pkgs.noto-fonts-emoji;
name = "Noto Color Emoji";
};
2024-01-14 17:33:16 +01:00
fonts.sizes.popups = 12;
targets.plymouth.logoAnimated = false;
targets.plymouth.logo = cfg.bootLogo;
}