notohh
193f2480d7
Some checks failed
ci/woodpecker/cron/flake-lock-update Pipeline failed
license: update pkgs: remove scls nix: update inputs and insecure pkgs tsuki: init gaming file blocky: update blocklist pgres: add dbs home: update themes programs: init opencomposite media: remove spotify-player helix: update theme and scls tsuki: remove stylix overlays: set chatterino tag to null
94 lines
2.2 KiB
Nix
94 lines
2.2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
home.sessionVariables.STARSHIP_CACHE = "${config.xdg.cacheHome}/starship";
|
|
|
|
programs.starship = {
|
|
enable = true;
|
|
enableNushellIntegration = true;
|
|
settings = {
|
|
add_newline = false;
|
|
format = lib.concatStrings [
|
|
"$character"
|
|
"$hostname"
|
|
"$directory"
|
|
"$git_branch"
|
|
"$git_status"
|
|
"$rust"
|
|
"$golang"
|
|
];
|
|
right_format = lib.concatStrings [
|
|
"$direnv"
|
|
"$nix_shell"
|
|
];
|
|
character = {
|
|
error_symbol = "[](bold red)";
|
|
success_symbol = "[](bold white)";
|
|
};
|
|
username = {
|
|
show_always = false;
|
|
format = "[$user]($style)";
|
|
style_user = "red";
|
|
};
|
|
hostname = {
|
|
ssh_symbol = "🌐";
|
|
format = "[$hostname $ssh_symbol]($style)";
|
|
ssh_only = true;
|
|
disabled = false;
|
|
};
|
|
directory = {
|
|
format = "[$path ]($style)";
|
|
truncation_length = 3;
|
|
truncation_symbol = "…/";
|
|
read_only = "🔒";
|
|
style = "red";
|
|
home_symbol = "";
|
|
};
|
|
directory.substitutions = {
|
|
"Documents" = " ";
|
|
"Downloads" = " ";
|
|
"Music" = " ";
|
|
"Pictures" = " ";
|
|
};
|
|
nix_shell = {
|
|
disabled = false;
|
|
impure_msg = "[impure shell](bold red)";
|
|
pure_msg = "[pure shell](bold green)";
|
|
unknown_msg = "[unknown shell](bold yellow)";
|
|
format = "[$state( \($name\))](bold white)";
|
|
};
|
|
direnv = {
|
|
disabled = false;
|
|
detect_files = [".envrc"];
|
|
style = "bold turquoise";
|
|
};
|
|
git_branch = {
|
|
symbol = "";
|
|
format = "[$symbol $branch ]($style)";
|
|
style = "turquoise";
|
|
};
|
|
git_status = {
|
|
format = "[$all_status$ahead_behind ]($style)";
|
|
style = "red";
|
|
};
|
|
golang = {
|
|
symbol = "";
|
|
format = "[$symbol ($version) ]($style)";
|
|
style = "teal";
|
|
};
|
|
rust = {
|
|
symbol = "";
|
|
format = "[$symbol ($version) ]($style)";
|
|
style = "orange";
|
|
};
|
|
time = {
|
|
disabled = false;
|
|
time_format = "%R";
|
|
format = "[ $time ]($style)";
|
|
style = "red";
|
|
};
|
|
};
|
|
};
|
|
}
|