From 966af28f2d5b7b5bd3f947d6bab5d7da3bf9fee4 Mon Sep 17 00:00:00 2001 From: SchweGELBin <67663319+SchweGELBin@users.noreply.github.com> Date: Sat, 21 Sep 2024 22:43:11 +0200 Subject: [PATCH] feat(home-manager/mako): add accent color support (#323) * feat(mako): add accent color support * fix(mako): updated theme path * chore(mako): update source * fix(mako): add accent option --- .sources/sources.json | 6 +++--- modules/home-manager/mako.nix | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.sources/sources.json b/.sources/sources.json index 9b82da1..0b17b97 100644 --- a/.sources/sources.json +++ b/.sources/sources.json @@ -248,9 +248,9 @@ "repo": "mako" }, "branch": "main", - "revision": "33cb59ce8483725e2dd3e818aecbf0bab259bde8", - "url": "https://github.com/catppuccin/mako/archive/33cb59ce8483725e2dd3e818aecbf0bab259bde8.tar.gz", - "hash": "1hy1k5dm8q75i9bqffmg8z4k0qkg9291k73vhpp0msn7bivb1aba" + "revision": "92844f144e72f2dc8727879ec141ffdacf3ff6a1", + "url": "https://github.com/catppuccin/mako/archive/92844f144e72f2dc8727879ec141ffdacf3ff6a1.tar.gz", + "hash": "0nz5x66bv0nhmgh2slw647j69x7pqcw0cyclkpv3bq6c5bw9j24f" }, "micro": { "type": "Git", diff --git a/modules/home-manager/mako.nix b/modules/home-manager/mako.nix index 3bc9d68..0c159a1 100644 --- a/modules/home-manager/mako.nix +++ b/modules/home-manager/mako.nix @@ -8,13 +8,15 @@ let inherit (config.catppuccin) sources; cfg = config.services.mako.catppuccin; enable = cfg.enable && config.services.mako.enable; - theme = lib.ctp.fromINI (sources.mako + "/themes/${cfg.flavor}"); + theme = lib.ctp.fromINI (sources.mako + "/themes/catppuccin-${cfg.flavor}/catppuccin-${cfg.flavor}-${cfg.accent}"); # Settings that need to be extracted and put in extraConfig extraConfigAttrs = lib.attrsets.getAttrs [ "urgency=high" ] theme; in { - options.services.mako.catppuccin = lib.ctp.mkCatppuccinOpt { name = "mako"; }; + options.services.mako.catppuccin = lib.ctp.mkCatppuccinOpt { name = "mako"; } // { + accent = lib.ctp.mkAccentOpt "mako"; + }; # Will cause infinite recursion if config.services.mako is directly set as a whole config.services.mako = lib.mkIf enable {