rose-pine-nix/modules/home-manager/rio.nix

16 lines
395 B
Nix
Raw Normal View History

2024-05-21 14:53:46 -07:00
{ config, lib, ... }:
let
inherit (lib) ctp;
inherit (config.catppuccin) sources;
cfg = config.programs.rio.catppuccin;
enable = cfg.enable && config.programs.rio.enable;
in
{
options.programs.rio.catppuccin = ctp.mkCatppuccinOpt { name = "rio"; };
config = lib.mkIf enable {
programs.rio.settings = lib.importTOML "${sources.rio}/themes/catppuccin-${cfg.flavor}.toml";
};
}