lifetracker/modules/components/theming/default.nix
2025-01-24 08:06:30 +00:00

34 lines
663 B
Nix

{
config,
inputs,
lib,
username,
pkgs,
vars,
...
}:
let
cfg = config.catppuccinTheming;
in
#cursor-theme = "Catppuccin-${flavor-upper}-${accent-upper}";
{
options = {
catppuccinTheming = {
enable = lib.mkEnableOption "Enable catppuccinTheming in NixOS & home-manager";
};
};
config = lib.mkIf cfg.enable {
stylix = {
enable = true;
image = ./wallpapers/mountainscapedark.jpg;
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
autoEnable = true;
};
home-manager.users.${username}.stylix = {
targets.kitty.enable = true;
autoEnable = true;
};
};
}