mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 00:00:44 +01:00
92 lines
2.6 KiB
Nix
92 lines
2.6 KiB
Nix
# SPDX-FileCopyrightText: 2025 Ryan Cao <hello@ryanccn.dev>
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
{
|
|
programs.starship = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
command_timeout = 1000;
|
|
|
|
character = {
|
|
success_symbol = "[➜](bold green)";
|
|
error_symbol = "[➜](bold red)";
|
|
};
|
|
|
|
bun.format = "[$symbol($version)]($style) ";
|
|
cmd_duration.format = "[$duration]($style) ";
|
|
deno.format = "[$symbol($version)]($style) ";
|
|
docker_context.format = "[$symbol$context]($style) ";
|
|
git_branch.format = "[$symbol$branch(:$remote_branch)]($style) ";
|
|
golang.format = "[$symbol($version)]($style) ";
|
|
nix_shell.format = "[$symbol$state( \($name\))]($style) ";
|
|
nodejs.format = "[$symbol($version)]($style) ";
|
|
package.format = "[$symbol$version]($style) ";
|
|
python.format = "[\${symbol}\${pyenv_prefix}(\${version} )(\($virtualenv\) )]($style)";
|
|
rust.format = "[$symbol($version)]($style) ";
|
|
|
|
aws.symbol = " ";
|
|
bun.symbol = " ";
|
|
c.symbol = " ";
|
|
conda.symbol = " ";
|
|
directory.read_only = " ";
|
|
docker_context.symbol = " ";
|
|
git_branch.symbol = " ";
|
|
golang.symbol = " ";
|
|
haskell.symbol = " ";
|
|
hg_branch.symbol = " ";
|
|
hostname.ssh_symbol = " ";
|
|
java.symbol = " ";
|
|
memory_usage.symbol = " ";
|
|
nim.symbol = " ";
|
|
nix_shell.symbol = " ";
|
|
nodejs.symbol = " ";
|
|
package.symbol = " ";
|
|
python.symbol = " ";
|
|
rust.symbol = " ";
|
|
|
|
os.symbols = {
|
|
Alpaquita = " ";
|
|
Alpine = " ";
|
|
Amazon = " ";
|
|
Android = " ";
|
|
Arch = " ";
|
|
Artix = " ";
|
|
CentOS = " ";
|
|
Debian = " ";
|
|
DragonFly = " ";
|
|
Emscripten = " ";
|
|
EndeavourOS = " ";
|
|
Fedora = " ";
|
|
FreeBSD = " ";
|
|
Garuda = " ";
|
|
Gentoo = " ";
|
|
HardenedBSD = " ";
|
|
Illumos = " ";
|
|
Linux = " ";
|
|
Mabox = " ";
|
|
Macos = " ";
|
|
Manjaro = " ";
|
|
Mariner = " ";
|
|
MidnightBSD = " ";
|
|
Mint = " ";
|
|
NetBSD = " ";
|
|
NixOS = " ";
|
|
OpenBSD = " ";
|
|
openSUSE = " ";
|
|
OracleLinux = " ";
|
|
Pop = " ";
|
|
Raspbian = " ";
|
|
Redhat = " ";
|
|
RedHatEnterprise = " ";
|
|
Redox = " ";
|
|
Solus = " ";
|
|
SUSE = " ";
|
|
Ubuntu = " ";
|
|
Unknown = " ";
|
|
Windows = " ";
|
|
};
|
|
};
|
|
};
|
|
}
|