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

22 lines
468 B
Nix
Raw Normal View History

2024-10-20 12:06:12 -07:00
{
config,
lib,
...
}: let
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 =
if (cfg.flavor == "main")
then "rose-pine"
else "rose-pine-${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";
};
}