nixos-config/nixos/components/gui/style.nix

52 lines
1017 B
Nix
Raw Normal View History

2023-06-30 20:59:11 +02:00
{ pkgs, config, lib, ... }:
with lib;
{
options.components.gui.style.enable = mkOption {
type = lib.types.bool;
default = config.components.gui.enable;
};
config = mkIf (config.components.gui.style.enable) {
2023-07-01 00:20:03 +02:00
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-light-medium.yaml";
stylix.fonts = {
serif = config.stylix.fonts.monospace;
sansSerif = config.stylix.fonts.monospace;
monospace = {
package = pkgs.jetbrains-mono;
name = "JetBrains Mono";
2023-06-30 21:20:46 +02:00
};
2023-07-01 00:20:03 +02:00
emoji = {
package = pkgs.noto-fonts-emoji;
name = "Noto Color Emoji";
2023-06-30 21:20:46 +02:00
};
};
2023-06-30 20:59:11 +02:00
fonts.fonts = with pkgs; [
corefonts
hasklig
inconsolata
source-code-pro
symbola
ubuntu_font_family
# symbol fonts
# ------------
nerdfonts
powerline-fonts
font-awesome
fira-code-symbols
jetbrains-mono
# shell font
# ----------
terminus_font
gohufont
];
};
}