flocon/modules/stylix.nix

51 lines
1.2 KiB
Nix

{ 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;
};
fonts = {
serif = {
package = pkgs.noto-fonts;
name = "Noto Serif";
};
sansSerif = {
package = pkgs.noto-fonts;
name = "Noto Sans";
};
monospace = {
package = pkgs.nerdfonts.override { fonts = [ "Monaspace" ]; };
name = "MonaspiceNe Nerd Font Mono";
};
emoji = {
package = pkgs.noto-fonts-color-emoji;
name = "Noto Color Emoji";
};
sizes = {
terminal = 14;
applications = 12;
desktop = 12;
};
};
targets = {
gtk.enable = false;
gnome.enable = false;
};
image = lib.mkDefault ../wallpapers/nix-wallpaper-nineish-catppuccin-frappe-alt.svg;
};
};
}