flocon/modules/stylix.nix

52 lines
1.3 KiB
Nix
Raw Normal View History

2024-09-06 13:28:06 +00:00
{ config, lib, pkgs, ... }:
let
cfg = config.modules.stylix;
in
{
options = {
modules.stylix = {
enable = lib.mkEnableOption "Enable the stylix module";
};
};
config = lib.mkIf cfg.enable {
stylix = {
enable = true;
polarity = "dark";
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-frappe.yaml";
cursor = {
package = pkgs.adwaita-icon-theme;
name = "Adwaita";
size = 24;
2024-09-06 13:28:06 +00:00
};
fonts = {
serif = lib.mkDefault {
2024-09-06 13:28:06 +00:00
package = pkgs.noto-fonts;
name = "Noto Serif";
};
sansSerif = lib.mkDefault {
2024-09-06 13:28:06 +00:00
package = pkgs.noto-fonts;
name = "Noto Sans";
};
monospace = lib.mkDefault {
package = pkgs.nerdfonts.override { fonts = [ "IntelOneMono" ]; };
name = "IntoneMono Nerd Font";
2024-09-06 13:28:06 +00:00
};
emoji = {
package = pkgs.noto-fonts-color-emoji;
name = "Noto Color Emoji";
};
sizes = lib.mkDefault {
2024-09-06 13:28:06 +00:00
terminal = 14;
2024-09-12 00:31:34 +00:00
desktop = 14;
2024-09-07 00:51:36 +00:00
applications = 10;
2024-09-06 13:28:06 +00:00
};
};
targets = {
gtk.enable = false;
gnome.enable = false;
};
2024-09-06 13:28:06 +00:00
image = lib.mkDefault ../wallpapers/nix-wallpaper-nineish-catppuccin-frappe-alt.svg;
};
};
}