nixos/system/stylix.nix

50 lines
1.3 KiB
Nix

{
lib,
pkgs,
catppuccinVariant ? "Mocha",
...
}: {
stylix = {
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-${lib.strings.toLower catppuccinVariant}.yaml";
autoEnable = false;
targets = {
chromium.enable = true;
console.enable = true;
};
image = ../wallpapers/default.jpg;
polarity = "dark";
opacity = {
applications = 0.85;
desktop = 1.0;
popups = 0.5;
terminal = 0.85;
};
cursor = let
variant = "${lib.strings.toLower catppuccinVariant}Dark";
in {
package = pkgs.catppuccin-cursors.${variant};
name = "Catppuccin-${catppuccinVariant}-Dark-Cursors";
};
fonts = let
iosevkaCustom = import ./iosevka.nix {
inherit (pkgs) stdenv iosevka nerd-font-patcher;
};
in {
sizes = {
applications = 16;
desktop = 20;
popups = 20;
terminal = 16;
};
serif = {inherit (iosevkaCustom.etoile) name package;};
sansSerif = {inherit (iosevkaCustom.aile) name package;};
monospace = {inherit (iosevkaCustom.nerdfont) name package;};
emoji = {
name = "EmojiOne Color";
package = pkgs.emojione;
};
};
homeManagerIntegration.followSystem = true;
};
}