Files
nixos/Droidnix/generated/system/applications/terminal_shell/starship.nix
T
2026-03-11 14:37:01 +01:00

44 lines
1.2 KiB
Nix
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{ lib, config, pkgs, ... }:
{
programs.starship = {
enable = true;
# Replace the default starship.toml with your custom file
settings = {
# This assumes your Nix flake or configuration is in the same directory as the assets folder
# If not, adjust the path accordingly
config = ''
[character]
success_symbol = "[](bold green)"
error_symbol = "[](bold red)"
vicmd_symbol = "[](bold green)"
[directory]
truncation_length = 3
[git_branch]
symbol = " "
[git_status]
format = "[(*$conflicted$untracked$modified$staged$renamed$deleted)](242) "
conflicts = ""
ahead = "${count} "
behind = "${count} "
diverged = "${ahead_count}${behind_count} "
untracked = ""
modified = ""
staged = "+${count} "
renamed = ""
deleted = ""
[package]
disabled = true
'';
# Path to your custom starship.toml file
# Use builtins.toFile to embed the file directly or readFile to reference it
# Here, we use `readFile` to include the file directly
configFile = "${./assets/system/conf/starship.toml}";
};
}
}