rose-pine-nix/modules/home-manager/starship.nix
punkfairie 91374e5df4
chore(starship): mkDefault caused entire config to be overridden
Revert " feat(starship): Starship fixes"

This reverts commit 4ce7b95d1b.
2024-11-04 20:57:49 -08:00

21 lines
486 B
Nix

{
config,
lib,
...
}: let
inherit (config.rose-pine) sources;
cfg = config.programs.starship.rose-pine;
enable = cfg.enable && config.programs.starship.enable;
themeName =
if (cfg.flavor == "main")
then "rose-pine"
else "rose-pine-${cfg.flavor}";
in {
options.programs.starship.rose-pine = lib.rp.mkRosePineOpt {name = "starship";};
config.programs.starship.settings = lib.mkIf enable (
lib.importTOML "${sources.starship}/${themeName}.toml"
);
}