snowflake/home/starship/default.nix

99 lines
2.2 KiB
Nix
Raw Normal View History

2023-03-11 21:26:02 -05:00
{
config,
lib,
...
}: {
2023-01-30 11:32:16 -05:00
home.sessionVariables.STARSHIP_CACHE = "${config.xdg.cacheHome}/starship";
programs.starship = {
enable = true;
2023-04-15 21:43:07 -04:00
enableNushellIntegration = true;
2023-01-30 11:32:16 -05:00
settings = {
format = lib.concatStrings [
"[](#f5c2e7)"
"$username"
2023-01-31 15:58:39 -05:00
"$hostname"
2023-01-30 11:32:16 -05:00
"[](bg:#f38ba8 fg:#f5c2e7)"
"$directory"
"[](fg:#f38ba8 bg:#eb7c92)"
"$git_branch"
"$git_status"
"[](fg:#eb7c92 bg:#e6657f)"
"$c"
"$golang"
"$nodejs"
"$rust"
"$docker_context"
"[](fg:#e6657f bg:#e05a75)"
"$time"
"[](fg:#e05a75)"
];
username = {
show_always = true;
style_user = "bg:#f5c2e7 fg:#11111b";
style_root = "bg:#f5c2e7 fg:#11111b";
2023-02-27 06:08:01 -05:00
format = "[ $user]($style)";
2023-01-31 15:58:39 -05:00
};
hostname = {
ssh_symbol = "";
style = "bg:#f5c2e7 fg:#11111b";
2023-02-27 06:08:01 -05:00
format = "[@$hostname]($style)";
2023-01-31 15:58:39 -05:00
ssh_only = false;
disabled = false;
2023-01-30 11:32:16 -05:00
};
directory = {
style = "bg:#f38ba8 fg:#11111b";
format = "[ $path ]($style)";
truncation_length = 3;
truncation_symbol = "/";
};
directory.substitutions = {
"Documents" = " ";
"Downloads" = " ";
"Music" = " ";
"Pictures" = " ";
};
c = {
symbol = " ";
style = "bg:#e6657f fg:#11111b";
format = "[ $symbol ($version) ]($style)";
};
docker_context = {
symbol = " ";
style = "bg:#e6657f fg:#11111b";
format = "[ $symbol $context ]($style) $path";
};
git_branch = {
symbol = "";
style = "bg:#eb7c92 fg:#11111b";
format = "[ $symbol $branch ]($style)";
};
git_status = {
style = "bg:#eb7c92 fg:#11111b";
format = "[$all_status$ahead_behind ]($style)";
};
golang = {
symbol = " ";
style = "bg:#e6657f fg:#11111b";
format = "[ $symbol ($version) ]($style)";
};
nodejs = {
symbol = "";
style = "bg:#e6657f fg:#11111b";
format = "[ $symbol ($version) ]($style)";
};
rust = {
symbol = "";
style = "bg:#e6657f fg:#11111b";
format = "[ $symbol ($version) ]($style)";
};
time = {
disabled = false;
time_format = "%R"; # Hour:Minute Format
style = "bg:#e05a75 fg:#11111b";
format = "[ $time ]($style)";
};
};
};
}