2024-05-21 14:53:46 -07:00
|
|
|
{ config, lib, ... }:
|
2024-04-16 09:23:11 -07:00
|
|
|
let
|
|
|
|
inherit (lib) ctp;
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
|
|
|
|
2024-04-16 09:23:11 -07:00
|
|
|
cfg = config.programs.rio.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.rio.enable;
|
|
|
|
in
|
|
|
|
{
|
2024-06-28 09:29:30 -07:00
|
|
|
options.programs.rio.catppuccin = ctp.mkCatppuccinOpt { name = "rio"; };
|
2024-04-16 09:23:11 -07:00
|
|
|
|
|
|
|
config = lib.mkIf enable {
|
2024-06-10 13:38:47 -07:00
|
|
|
programs.rio.settings = lib.importTOML "${sources.rio}/themes/catppuccin-${cfg.flavor}.toml";
|
2024-04-16 09:23:11 -07:00
|
|
|
};
|
|
|
|
}
|