2024-01-19 05:13:18 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
orangeColor = "#f0810e";
|
|
|
|
yellowColor = "#f9b931";
|
|
|
|
blueColor = "#446e86";
|
|
|
|
whiteColor = "#f8f2e6";
|
|
|
|
blackColor = "#2f312e";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
programs.starship.settings = {
|
|
|
|
format = lib.concatStrings [
|
2024-01-19 05:29:34 +01:00
|
|
|
"[](${whiteColor})"
|
|
|
|
"$time"
|
2024-01-19 05:50:23 +01:00
|
|
|
"[](${whiteColor}) "
|
2024-01-19 05:29:34 +01:00
|
|
|
|
2024-01-19 05:13:18 +01:00
|
|
|
"[](${orangeColor})"
|
|
|
|
"$username"
|
2024-01-19 05:18:47 +01:00
|
|
|
"$hostname"
|
2024-01-19 05:13:18 +01:00
|
|
|
"[](bg:${yellowColor} fg:${orangeColor})"
|
|
|
|
"$directory"
|
|
|
|
"[](fg:${yellowColor} bg:${blueColor})"
|
|
|
|
"$git_branch"
|
|
|
|
"$git_status"
|
|
|
|
"[ ](fg:${blueColor})"
|
|
|
|
# "[](fg:${blueColor} bg:#86BBD8)"
|
|
|
|
# "$c"
|
|
|
|
# "$elixir"
|
|
|
|
# "$elm"
|
|
|
|
# "$golang"
|
|
|
|
# "$gradle"
|
|
|
|
# "$haskell"
|
|
|
|
# "$java"
|
|
|
|
# "$julia"
|
|
|
|
# "$nodejs"
|
|
|
|
# "$nim"
|
|
|
|
"$rust"
|
|
|
|
# "$scala"
|
|
|
|
# "[](fg:#86BBD8 bg:#06969A)"
|
|
|
|
"$docker_context"
|
2024-01-19 05:25:55 +01:00
|
|
|
"$status"
|
2024-01-19 05:13:18 +01:00
|
|
|
# "[](fg:#06969A bg:#33658A)"
|
2024-01-19 06:05:12 +01:00
|
|
|
# "$time"
|
2024-01-19 05:13:18 +01:00
|
|
|
# "[ ](fg:#33658A)"
|
|
|
|
];
|
|
|
|
|
|
|
|
username = {
|
|
|
|
show_always = true;
|
|
|
|
style_user = "fg:${blackColor} bg:${orangeColor}";
|
|
|
|
style_root = "fg:${blackColor} bg:${orangeColor}";
|
2024-01-19 06:00:54 +01:00
|
|
|
format = "[$user]($style)";
|
2024-01-19 05:13:18 +01:00
|
|
|
disabled = false;
|
|
|
|
};
|
|
|
|
|
2024-01-19 05:18:47 +01:00
|
|
|
hostname = {
|
|
|
|
ssh_only = true;
|
2024-01-19 05:21:21 +01:00
|
|
|
style = "fg:${blackColor} bg:${orangeColor}";
|
2024-01-19 05:21:53 +01:00
|
|
|
format = "[@$hostname]($style)";
|
2024-01-19 05:18:47 +01:00
|
|
|
disabled = false;
|
|
|
|
};
|
|
|
|
|
2024-01-19 05:13:18 +01:00
|
|
|
os = {
|
|
|
|
style = "bg:${orangeColor}";
|
|
|
|
disabled = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
directory = {
|
|
|
|
style = "fg:${blackColor} bg:${yellowColor}";
|
|
|
|
format = "[ $path ]($style)";
|
|
|
|
truncation_length = 3;
|
|
|
|
truncation_symbol = "…/";
|
|
|
|
substitutions = {
|
|
|
|
Documents = " ";
|
|
|
|
Downloads = " ";
|
|
|
|
Music = " ";
|
|
|
|
Pictures = " ";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
git_branch = {
|
|
|
|
symbol = "";
|
|
|
|
style = "fg:${whiteColor} bg:${blueColor}";
|
2024-01-19 06:05:12 +01:00
|
|
|
format = "[ $symbol $branch]($style)";
|
2024-01-19 05:13:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
git_status = {
|
|
|
|
style = "fg:${whiteColor} bg:${blueColor}";
|
|
|
|
format = "[$all_status$ahead_behind ]($style)";
|
|
|
|
};
|
|
|
|
|
|
|
|
nodejs = {
|
|
|
|
symbol = "";
|
|
|
|
style = "bg:#86BBD8";
|
|
|
|
format = "[ $symbol ($version) ]($style)";
|
|
|
|
};
|
|
|
|
|
|
|
|
nim = {
|
|
|
|
symbol = " ";
|
|
|
|
style = "bg:#86BBD8";
|
|
|
|
format = "[ $symbol ($version) ]($style)";
|
|
|
|
};
|
|
|
|
|
|
|
|
time = {
|
|
|
|
disabled = false;
|
|
|
|
time_format = "%R"; # Hour:Minute Format
|
2024-01-19 05:30:49 +01:00
|
|
|
style = "fg:${blackColor} bg:${whiteColor}";
|
2024-01-19 06:06:20 +01:00
|
|
|
format = "[ $time]($style)";
|
2024-01-19 05:13:18 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|