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

21 lines
434 B
Nix
Raw Normal View History

2023-03-28 00:32:26 +00:00
{
config,
lib,
...
}:
let
inherit (config.rose-pine) sources;
cfg = config.programs.starship.rose-pine;
enable = cfg.enable && config.programs.starship.enable;
themeName = lib.rp.getKebabTheme cfg.flavor;
in
{
options.programs.starship.rose-pine = lib.rp.mkRosePineOpt { name = "starship"; };
2023-03-28 00:32:26 +00:00
2024-05-21 21:53:46 +00:00
config.programs.starship.settings = lib.mkIf enable (
lib.importTOML "${sources.starship}/${themeName}.toml"
2024-05-21 21:53:46 +00:00
);
2023-03-28 00:32:26 +00:00
}