nixos-config/modules/home/starship/default.nix
2023-11-06 23:16:35 +01:00

41 lines
1 KiB
Nix
Executable file
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.

{ inputs, ... }:
{
programs.starship = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
enableNushellIntegration = true;
settings = {
format = lib.concatStrings [
#"[ ](fg:#1e1e2e bg:#ff00aa)"
#"$username"
#"[](fg:#ff00aa)"
"$directory"
"[](fg:#1e1e2e bg:#cba6f7)"
"$git_branch"
"$git_status"
"[](fg:#cba6f7 bg:#89b4fa)"
"[](fg:#89b4fa bg:#94e2d5)"
"$nix_shell"
"[ ](fg:#94e2d5)"
];
# character = {
# success_symbol = "[ ](bold #89dceb)[](bold green)";
# error_symbol = "[ ](bold #89dceb)[](bold red)";
# };
# directory.substitutions = {
# "Documents" = " ";
# "Downloads" = " ";
# "Music" = " ";
# "Pictures" = " ";
# "~" = "󰋞 ";
# };
palette = "catppuccin_mocha";
} // builtins.fromTOML (builtins.readFile "${inputs.catppuccin-starship}/palettes/mocha.toml");
};
}