2023-09-15 07:13:52 +01:00
|
|
|
|
{ catppuccin-themes, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
programs.starship = {
|
|
|
|
|
enable = true;
|
2023-09-20 09:00:22 +01:00
|
|
|
|
enableBashIntegration = true;
|
|
|
|
|
enableZshIntegration = true;
|
2023-09-15 07:13:52 +01:00
|
|
|
|
settings = {
|
|
|
|
|
inherit (builtins.fromTOML (builtins.readFile catppuccin-themes.starship))
|
|
|
|
|
palettes;
|
|
|
|
|
command_timeout = 1000;
|
|
|
|
|
add_newline = true;
|
|
|
|
|
palette = "catppuccin_macchiato";
|
|
|
|
|
character = {
|
2023-09-18 10:25:49 +01:00
|
|
|
|
success_symbol = "[[](green) ❯](maroon)";
|
2023-09-28 11:07:37 +01:00
|
|
|
|
error_symbol = "[❯](red)";
|
2023-09-15 07:13:52 +01:00
|
|
|
|
};
|
|
|
|
|
directory = {
|
2023-09-18 10:25:49 +01:00
|
|
|
|
truncation_length = 2;
|
2023-09-15 07:13:52 +01:00
|
|
|
|
fish_style_pwd_dir_length = 1;
|
2023-09-18 10:25:49 +01:00
|
|
|
|
read_only = " ";
|
2023-09-15 07:13:52 +01:00
|
|
|
|
style = "bold lavender";
|
2023-09-18 10:25:49 +01:00
|
|
|
|
truncate_to_repo = false;
|
|
|
|
|
before_repo_root_style = "bold lavender";
|
|
|
|
|
repo_root_style = "bold teal";
|
2023-09-15 07:13:52 +01:00
|
|
|
|
};
|
|
|
|
|
line_break.disabled = false;
|
2023-09-18 09:18:11 +01:00
|
|
|
|
git_branch = {
|
|
|
|
|
symbol = "";
|
|
|
|
|
only_attached = true;
|
|
|
|
|
ignore_branches = [ "master" "main" ];
|
|
|
|
|
};
|
|
|
|
|
git_commit = {
|
|
|
|
|
format = "[ $hash$tag]($style) ";
|
|
|
|
|
tag_symbol = "";
|
|
|
|
|
tag_disabled = false;
|
|
|
|
|
};
|
2023-09-15 07:13:52 +01:00
|
|
|
|
git_metrics.disabled = false;
|
|
|
|
|
hostname = {
|
|
|
|
|
ssh_only = true;
|
|
|
|
|
ssh_symbol = " ";
|
|
|
|
|
style = "bold green";
|
|
|
|
|
};
|
2023-09-18 10:25:49 +01:00
|
|
|
|
localip.disabled = false;
|
2023-09-15 07:13:52 +01:00
|
|
|
|
memory_usage = {
|
|
|
|
|
disabled = false;
|
|
|
|
|
symbol = " ";
|
|
|
|
|
};
|
2023-09-18 10:25:49 +01:00
|
|
|
|
nix_shell.symbol = " ";
|
2023-09-15 07:13:52 +01:00
|
|
|
|
os = {
|
|
|
|
|
disabled = false;
|
|
|
|
|
format = "on [$symbol $name ]($style)";
|
|
|
|
|
style = "bold blue";
|
|
|
|
|
symbols = {
|
|
|
|
|
Alpine = " ";
|
|
|
|
|
Android = " ";
|
|
|
|
|
Arch = " ";
|
|
|
|
|
CentOS = " ";
|
|
|
|
|
Debian = " ";
|
|
|
|
|
EndeavourOS = " ";
|
|
|
|
|
Fedora = " ";
|
|
|
|
|
FreeBSD = " ";
|
|
|
|
|
Gentoo = " ";
|
|
|
|
|
Illumos = " ";
|
|
|
|
|
Linux = " ";
|
|
|
|
|
Macos = " ";
|
|
|
|
|
Manjaro = " ";
|
|
|
|
|
Mint = " ";
|
|
|
|
|
NixOS = " ";
|
|
|
|
|
OpenBSD = " ";
|
|
|
|
|
openSUSE = " ";
|
|
|
|
|
Pop = " ";
|
|
|
|
|
Raspbian = " ";
|
|
|
|
|
Redhat = " ";
|
|
|
|
|
RedHatEnterprise = " ";
|
|
|
|
|
Solus = " ";
|
|
|
|
|
SUSE = " ";
|
|
|
|
|
Ubuntu = " ";
|
|
|
|
|
Unknown = " ";
|
|
|
|
|
Windows = " ";
|
|
|
|
|
};
|
|
|
|
|
};
|
2023-09-18 09:04:11 +01:00
|
|
|
|
python = {
|
|
|
|
|
symbol = " ";
|
|
|
|
|
python_binary = "python3";
|
|
|
|
|
};
|
2023-09-15 07:13:52 +01:00
|
|
|
|
shell = {
|
|
|
|
|
disabled = false;
|
|
|
|
|
format = "using [$indicator ]($style)";
|
|
|
|
|
};
|
|
|
|
|
sudo = {
|
|
|
|
|
disabled = false;
|
|
|
|
|
symbol = " ";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|