configuration.nix/nixos/stylix-config.nix

31 lines
808 B
Nix
Raw Normal View History

{ config, pkgs }:
2024-01-14 17:33:16 +01:00
let
cfg = config.jconfig.styling;
2024-01-19 17:13:40 +01:00
nerdFontSymbols = pkgs.nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; };
fallbackSymbols = {
name = "Symbols Nerd Font";
package = nerdFontSymbols;
};
2024-01-14 17:33:16 +01: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; }
fallbackSymbols
];
fonts.sansSerif = [
{ name = "Noto Sans"; package = pkgs.noto-fonts; }
fallbackSymbols
];
fonts.serif = [
{ name = "Noto Serif"; package = pkgs.noto-fonts; }
fallbackSymbols
];
2024-01-14 17:33:16 +01:00
fonts.sizes.popups = 12;
targets.plymouth.logoAnimated = false;
targets.plymouth.logo = cfg.bootLogo;
}