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

21 lines
416 B
Nix
Raw Normal View History

2024-10-20 12:06:12 -07:00
{
config,
lib,
...
}:
let
2024-10-20 12:06:12 -07:00
inherit (config.rose-pine) sources;
2024-10-20 12:06:12 -07:00
cfg = config.programs.rio.rose-pine;
enable = cfg.enable && config.programs.rio.enable;
2024-10-20 12:06:12 -07:00
themeName = lib.rp.getKebabTheme cfg.flavor;
in
{
options.programs.rio.rose-pine = lib.rp.mkRosePineOpt { name = "rio"; };
config = lib.mkIf enable {
2024-10-20 17:42:30 -07:00
programs.rio.settings = lib.importTOML "${sources.rio-terminal}/${themeName}.toml";
};
}