feat(home-manager): add gtk icon theme (#165)

Uses catppuccin-papirus-folders

Co-authored-by: seth <getchoo@tuta.io>
This commit is contained in:
Weathercold 2024-05-14 00:09:27 -04:00 committed by GitHub
parent 76416edbf5
commit 27e71a3548
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,6 +31,11 @@ in
// {
accent = ctp.mkBasicOpt "accent" cursorAccentType "gtk cursors";
};
icon = ctp.mkCatppuccinOpt "gtk modified Papirus icon theme"
// {
accent = ctp.mkAccentOpt "gtk modified Papirus icon theme";
};
};
config = lib.mkIf enable {
@ -69,6 +74,22 @@ in
name = "Catppuccin-${flavourUpper}-${accentUpper}-Cursors";
package = pkgs.catppuccin-cursors.${cfg.cursor.flavour + accentUpper};
};
iconTheme =
let
# use the light icon theme for latte
polarity =
if cfg.icon.flavour == "latte"
then "Light"
else "Dark";
in
lib.mkIf cfg.icon.enable {
name = "Papirus-${polarity}";
package = pkgs.catppuccin-papirus-folders.override {
flavor = cfg.icon.flavour;
accent = cfg.icon.accent;
};
};
};
xdg.configFile =