rose-pine-nix/modules/home-manager/rio.nix
2024-04-16 12:23:11 -04:00

18 lines
353 B
Nix

{ config
, lib
, sources
, ...
}:
let
inherit (lib) ctp;
cfg = config.programs.rio.catppuccin;
enable = cfg.enable && config.programs.rio.enable;
in
{
options.programs.rio.catppuccin =
ctp.mkCatppuccinOpt "rio";
config = lib.mkIf enable {
programs.rio.settings = lib.importTOML "${sources.rio}/catppuccin-${cfg.flavour}.toml";
};
}