diff --git a/.sources/sources.json b/.sources/sources.json index 8f5332a..2b1a37d 100644 --- a/.sources/sources.json +++ b/.sources/sources.json @@ -112,13 +112,13 @@ "type": "Git", "repository": { "type": "GitHub", - "owner": "catppuccin", + "owner": "EuCaue", "repo": "foot" }, "branch": "main", - "revision": "17e2bdc8a8d854e8d390919579f87ab7d5f86e38", - "url": "https://github.com/catppuccin/foot/archive/17e2bdc8a8d854e8d390919579f87ab7d5f86e38.tar.gz", - "hash": "145icc622jf5j9sb4d5phclh47s6n6zi9c906p3n935q2yycg7rg" + "revision": "a4504926bf7aa748479adf4103d721aec7b735c5", + "url": "https://github.com/EuCaue/foot/archive/a4504926bf7aa748479adf4103d721aec7b735c5.tar.gz", + "hash": "1a4854csxs4x5hjmz2k5zr68qmxi117bgq90yd62kz6v4lbn8jqa" }, "fuzzel": { "type": "Git", diff --git a/modules/home-manager/foot.nix b/modules/home-manager/foot.nix index ac7afa9..76b56a5 100644 --- a/modules/home-manager/foot.nix +++ b/modules/home-manager/foot.nix @@ -1,14 +1,21 @@ -{ config, lib, ... }: -let - inherit (config.catppuccin) sources; - - cfg = config.programs.foot.catppuccin; - enable = cfg.enable && config.programs.foot.enable; -in { - options.programs.foot.catppuccin = lib.ctp.mkCatppuccinOpt { name = "foot"; }; + config, + lib, + ... +}: let + inherit (config.rose-pine) sources; + + cfg = config.programs.foot.rose-pine; + enable = cfg.enable && config.programs.foot.enable; + + themeName = + if (cfg.flavor == "main") + then "rose-pine" + else "rose-pine-${cfg.flavor}"; +in { + options.programs.foot.rose-pine = lib.rp.mkRosePineOpt {name = "foot";}; config.programs.foot = lib.mkIf enable { - settings.main.include = sources.foot + "/themes/catppuccin-${cfg.flavor}.ini"; + settings.main.include = sources.foot + "/${themeName}.ini"; }; }