refactor(git): update configuration to use centralized email setting

refactor(starship): enhance config with palette and external TOML file
This commit is contained in:
uttarayan21
2025-10-24 09:57:05 +05:30
parent b2982efef0
commit 41d2200b2e
2 changed files with 25 additions and 16 deletions

View File

@@ -4,21 +4,29 @@
device,
...
}: {
stylix.targets.starship.enable = false;
programs.starship = {
enable = true;
enableFishIntegration = true;
enableNushellIntegration = true;
settings = {
format = "$all$character";
character = {
success_symbol = "[[OK](bold green) ](maroon)";
error_symbol = "[](red)";
vimcmd_symbol = "[](green)";
};
directory = {
truncation_length = 4;
style = "bold lavender";
};
};
settings = let
flavour = "mocha"; # Replace with your preferred palette
in
{
# Check https://starship.rs/config/#prompt
format = "$all$character";
palette = "catppuccin_${flavour}";
character = {
success_symbol = "[[OK](bold green) ](maroon)";
error_symbol = "[](red)";
vimcmd_symbol = "[](green)";
};
directory = {
truncation_length = 4;
style = "bold lavender";
};
}
// builtins.fromTOML (builtins.readFile
(pkgs.catppuccinThemes.starship + /palettes/${flavour}.toml));
};
}