Files
dotfiles/home/programs/starship.nix
uttarayan21 99b4fb3ad1
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled
chore(flake): update nixpkgs and stylix to 25.11, update dependencies and disable stylix for tsuba
2026-01-04 08:52:09 +05:30

36 lines
876 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
pkgs,
lib,
device,
...
}:
{
programs.starship = {
enable = true;
enableFishIntegration = true;
enableNushellIntegration = true;
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));
};
}
// lib.optionalAttrs (!(device.is "tsuba")) {
stylix.targets.starship.enable = false;
}