44 lines
1.6 KiB
Nix
Raw Normal View History

2024-06-19 15:16:43 +03:00
{ cfg }: { config, pkgs, lib, inputs, ... }: {
catppuccin.accent = cfg.accent;
catppuccin.flavor = cfg.flavor;
2024-06-19 12:44:15 +03:00
boot.loader.grub.catppuccin.enable = true;
console.catppuccin.enable = true;
2024-06-23 04:28:23 +03:00
home-manager.users.${config.mainuser} = {
2024-06-19 15:16:43 +03:00
catppuccin.accent = cfg.accent;
catppuccin.flavor = cfg.flavor;
2024-06-19 12:44:15 +03:00
2024-06-18 04:49:58 +03:00
qt.style.catppuccin.enable = true;
qt.style.catppuccin.apply = true;
services.mako.catppuccin.enable = true;
programs = {
bat.catppuccin.enable = true;
bottom.catppuccin.enable = true;
fzf.catppuccin.enable = true;
gitui.catppuccin.enable = true;
glamour.catppuccin.enable = true;
kitty.catppuccin.enable = true;
micro.catppuccin.enable = true;
mpv.catppuccin.enable = true;
rofi.catppuccin.enable = true;
zathura.catppuccin.enable = true;
zsh.syntaxHighlighting.enable = true;
zsh.syntaxHighlighting.catppuccin.enable = true;
waybar.catppuccin.enable = true;
waybar.catppuccin.mode = "createLink";
};
wayland.windowManager.hyprland.extraConfig = ''
2024-06-19 15:16:43 +03:00
exec=hyprctl setcursor catppuccin-${cfg.flavor}-${cfg.accent}-cursors ${toString cfg.thm.cursorSize}
2024-06-18 04:49:58 +03:00
'';
};
themes.base16.extraParams = {
2024-06-19 15:16:43 +03:00
iconTheme = lib.mkForce "Papirus-${cfg.gtkTheme}";
iconPackage = lib.mkForce (pkgs.catppuccin-papirus-folders.override { inherit (cfg) accent flavor; });
cursorPackage = lib.mkForce (pkgs.catppuccin-cursors.${cfg.flavor + cfg.accentUpper});
cursorTheme = lib.mkForce "catppuccin-${cfg.flavor}-${cfg.accent}-cursors";
2024-06-19 12:44:15 +03:00
cursorSize = lib.mkForce 32;
2024-06-18 04:49:58 +03:00
};
2024-06-19 12:44:15 +03:00
}