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