Przystosowywanie pod siebie.

This commit is contained in:
2025-09-25 16:25:58 +02:00
parent d01e114914
commit 244567f465
35 changed files with 640 additions and 345 deletions

View File

@@ -1,4 +1,3 @@
# starship with python venv support
{
config,
lib,
@@ -6,13 +5,12 @@
}:
let
accent = "#${config.lib.stylix.colors.base0D}";
background-alt = "#${config.lib.stylix.colors.base01}";
in
{
programs.starship = {
enable = true;
settings = {
add_newline = false;
add_newline = true;
format = lib.concatStrings [
"$nix_shell"
"$hostname"
@@ -20,19 +18,33 @@ in
"$git_branch"
"$git_state"
"$git_status"
"$fill"
"$python"
"\n"
"$nodejs"
"$rust"
"$docker_context"
"$cmd_duration"
"$line_break"
"$character"
];
directory = {
style = accent;
style = "bold fg:dark_blue";
format = "[$path ]($style)";
truncation_length = 3;
truncation_symbol = "/";
truncate_to_repo = false;
substitutions = {
"Documents" = "󰈙";
"Downloads" = " ";
"Music" = " ";
"Pictures" = " ";
};
};
character = {
success_symbol = "[](${accent})";
error_symbol = "[](red)";
vimcmd_symbol = "[](cyan)";
};
nix_shell = {
@@ -42,14 +54,14 @@ in
};
git_branch = {
symbol = "[](${background-alt}) ";
style = "fg:${accent} bg:${background-alt}";
format = "on [$symbol$branch]($style)[](${background-alt}) ";
style = "fg:green";
symbol = " ";
format = "[on](white) [$symbol$branch ]($style)";
};
git_status = {
format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218)($ahead_behind$stashed)]($style)";
style = "cyan";
style = "fg:green";
format = "([$all_status$ahead_behind]($style) )";
conflicted = "";
renamed = "";
deleted = "";
@@ -61,11 +73,44 @@ in
style = "bright-black";
};
fill = {
symbol = " ";
};
python = {
format = " [$symbol($virtualenv)](${accent}) ";
style = "teal";
symbol = " ";
pyenv_version_name = false;
style = "fg:${accent}";
format = "[\${symbol}\${pyenv_prefix}(\${version} )(\($virtualenv\) )]($style)";
pyenv_version_name = true;
pyenv_prefix = "";
};
nodejs = {
style = "blue";
symbol = " ";
};
rust = {
style = "orange";
symbol = " ";
};
docker_context = {
symbol = " ";
style = "fg:#06969A";
format = "[$symbol]($style) $path";
detect_files = [
"docker-compose.yml"
"docker-compose.yaml"
"Dockerfile"
];
detect_extensions = [ "Dockerfile" ];
};
cmd_duration = {
min_time = 500;
style = "fg:gray";
format = "[$duration]($style)";
};
};
};