mirror of
https://github.com/semere-meb/dotfiles-nix.git
synced 2026-08-03 10:24:36 +00:00
121 lines
2.6 KiB
Nix
121 lines
2.6 KiB
Nix
{
|
||
config,
|
||
lib,
|
||
pkgs,
|
||
userVars,
|
||
...
|
||
}:
|
||
|
||
{
|
||
home-manager.users."${userVars.username}".programs.starship = {
|
||
enable = true;
|
||
enableZshIntegration = true;
|
||
|
||
settings = {
|
||
add_newline = false;
|
||
command_timeout = 500;
|
||
scan_timeout = 10;
|
||
|
||
format = lib.concatStrings [
|
||
"$directory"
|
||
"$git_branch"
|
||
"$git_status"
|
||
"$nix_shell"
|
||
"$python"
|
||
"$c"
|
||
"$rust"
|
||
"$cmd_duration"
|
||
"$jobs"
|
||
"$line_break"
|
||
"$character"
|
||
];
|
||
|
||
character = {
|
||
success_symbol = "[❯](bold green)";
|
||
error_symbol = "[❯](bold red)";
|
||
vimcmd_symbol = "[❮](bold yellow)";
|
||
};
|
||
|
||
directory = {
|
||
style = "bold cyan";
|
||
truncation_length = 3;
|
||
truncate_to_repo = true;
|
||
truncation_symbol = "…/";
|
||
read_only = " 🔒";
|
||
};
|
||
|
||
git_branch = {
|
||
style = "bold purple";
|
||
format = "[$symbol$branch]($style) ";
|
||
symbol = " ";
|
||
};
|
||
|
||
git_status = {
|
||
style = "bold red";
|
||
format = "([$all_status$ahead_behind]($style)) ";
|
||
conflicted = "=";
|
||
ahead = "⇡\${count}";
|
||
behind = "⇣\${count}";
|
||
diverged = "⇕⇡\${ahead_count}⇣\${behind_count}";
|
||
staged = "+\${count}";
|
||
modified = "!\${count}";
|
||
untracked = "?\${count}";
|
||
stashed = "\\$";
|
||
};
|
||
|
||
nix_shell = {
|
||
style = "bold blue";
|
||
format = "[$symbol$state( \($name\))]($style) ";
|
||
symbol = "❄ ";
|
||
impure_msg = "impure";
|
||
pure_msg = "pure";
|
||
};
|
||
|
||
python = {
|
||
style = "bold yellow";
|
||
format = "[$symbol( \($virtualenv\))]($style) ";
|
||
symbol = " ";
|
||
detect_extensions = [ "py" ];
|
||
detect_files = [
|
||
"pyproject.toml"
|
||
"requirements.txt"
|
||
"uv.lock"
|
||
];
|
||
};
|
||
|
||
c = {
|
||
style = "bold dimmed white";
|
||
format = "[$symbol($version(-$name))]($style) ";
|
||
symbol = " ";
|
||
detect_extensions = [
|
||
"c"
|
||
"h"
|
||
];
|
||
};
|
||
|
||
rust = {
|
||
disabled = true;
|
||
};
|
||
|
||
cmd_duration = {
|
||
style = "bold yellow";
|
||
format = "[$duration]($style) ";
|
||
min_time = 2000;
|
||
show_notifications = false;
|
||
};
|
||
|
||
jobs = {
|
||
style = "bold blue";
|
||
symbol = "✦";
|
||
number_threshold = 1;
|
||
};
|
||
|
||
aws.disabled = true;
|
||
gcloud.disabled = true;
|
||
docker_context.disabled = true;
|
||
kubernetes.disabled = true;
|
||
package.disabled = true;
|
||
battery.disabled = true;
|
||
};
|
||
};
|
||
}
|