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

21 lines
434 B
Nix
Raw Normal View History

2023-03-27 17:32:26 -07: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-27 17:32:26 -07:00
2024-05-21 14:53:46 -07:00
config.programs.starship.settings = lib.mkIf enable (
lib.importTOML "${sources.starship}/${themeName}.toml"
2024-05-21 14:53:46 -07:00
);
2023-03-27 17:32:26 -07:00
}