From b30159eb59724e6f1ab69adc308afdcd5d6acc11 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 2 Nov 2024 23:20:00 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(starship):=20Finish=20configur?= =?UTF-8?q?ing=20starship?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flake.lock | 8 +- home/starship/default.nix | 153 +++++++++++++++++------- home/starship/nerd-font-symbols.toml | 170 --------------------------- 3 files changed, 117 insertions(+), 214 deletions(-) delete mode 100644 home/starship/nerd-font-symbols.toml diff --git a/flake.lock b/flake.lock index c682d2f..3422e28 100644 --- a/flake.lock +++ b/flake.lock @@ -95,11 +95,11 @@ }, "rose-pine": { "locked": { - "lastModified": 1730601595, - "narHash": "sha256-VK+q689BfEYvqup6RpOoQTCR2hUo8fMnHUd7En6oa9E=", + "lastModified": 1730612146, + "narHash": "sha256-hwOcMTXH6Cx2C8lDllpuB7eFd2qvteyLINRYaG0ELTA=", "ref": "refs/heads/main", - "rev": "4ce7b95d1bb2d211d39f2697a0884d5eb12d716d", - "revCount": 375, + "rev": "6a751d43f8c53dd922403a12d43cb74da7e25d79", + "revCount": 376, "type": "git", "url": "https://git.punkfairie.net/punkfairie/rose-pine-nix" }, diff --git a/home/starship/default.nix b/home/starship/default.nix index 3264ae7..fbb7e8b 100644 --- a/home/starship/default.nix +++ b/home/starship/default.nix @@ -6,48 +6,121 @@ rose-pine.enable = true; settings = lib.mkMerge [ - (lib.mkDefault (lib.importTOML ./nerd-font-symbols.toml)) + # Nerd Font Symbols { - format = lib.concatStrings [ - "$username" - "$directory" - "$git_branch" - "$git_status" - "$fill" - "$c" - "$elixir" - "$elm" - "$golang" - "$haskell" - "$java" - "$julia" - "$nodejs" - "$nim" - "$rust" - "$scala" - "$python" - "$time" - "$line_break" - "[󱞪](fg:iris)" - ]; + aws.symbol = lib.mkForce " "; + buf.symbol = lib.mkForce " "; + c.symbol = lib.mkForce " "; + conda.symbol = lib.mkForce " "; + crystal.symbol = lib.mkForce " "; + dart.symbol = lib.mkForce " "; + directory.read_only = lib.mkForce " 󰌾"; + docker_context.symbol = lib.mkForce " "; + elixir.symbol = lib.mkForce " "; + elm.symbol = lib.mkForce " "; + fennel.symbol = lib.mkForce " "; + fossil_branch.symbol = lib.mkForce " "; + git_branch.symbol = lib.mkForce " "; + git_commit.tag_symbol = lib.mkForce "  "; + golang.symbol = lib.mkForce " "; + guix_shell.symbol = lib.mkForce " "; + haskell.symbol = lib.mkForce " "; + haxe.symbol = lib.mkForce " "; + hg_branch.symbol = lib.mkForce " "; + hostname.ssh_symbol = lib.mkForce " "; + java.symbol = lib.mkForce " "; + julia.symbol = lib.mkForce " "; + kotlin.symbol = lib.mkForce " "; + lua.symbol = lib.mkForce " "; + memory_usage.symbol = lib.mkForce "󰍛 "; + meson.symbol = lib.mkForce "󰔷 "; + nim.symbol = lib.mkForce "󰆥 "; + nix_shell.symbol = lib.mkForce " "; + nodejs.symbol = lib.mkForce " "; + ocaml.symbol = lib.mkForce " "; + os.symbols = { + Alpine = lib.mkForce " "; + AlmaLinux = lib.mkForce " "; + Amazon = lib.mkForce " "; + Android = lib.mkForce " "; + Arch = lib.mkForce " "; + Artix = lib.mkForce " "; + CentOS = lib.mkForce " "; + Debian = lib.mkForce " "; + DragonFly = lib.mkForce " "; + Emscripten = lib.mkForce " "; + EndeavourOS = lib.mkForce " "; + Fedora = lib.mkForce " "; + FreeBSD = lib.mkForce " "; + Garuda = lib.mkForce "󰛓 "; + Gentoo = lib.mkForce " "; + HardenedBSD = lib.mkForce "󰞌 "; + Illumos = lib.mkForce "󰈸 "; + Kali = lib.mkForce " "; + Linux = lib.mkForce " "; + Mabox = lib.mkForce " "; + Macos = lib.mkForce " "; + Manjaro = lib.mkForce " "; + Mariner = lib.mkForce " "; + MidnightBSD = lib.mkForce " "; + Mint = lib.mkForce " "; + NetBSD = lib.mkForce " "; + NixOS = lib.mkForce " "; + OpenBSD = lib.mkForce "󰈺 "; + openSUSE = lib.mkForce " "; + OracleLinux = lib.mkForce "󰌷 "; + Pop = lib.mkForce " "; + Raspbian = lib.mkForce " "; + Redhat = lib.mkForce " "; + RedHatEnterprise = lib.mkForce " "; + RockyLinux = lib.mkForce " "; + Redox = lib.mkForce "󰀘 "; + Solus = lib.mkForce "󰠳 "; + SUSE = lib.mkForce " "; + Ubuntu = lib.mkForce " "; + Unknown = lib.mkForce " "; + Void = lib.mkForce " "; + Windows = "󰍲 "; + }; + package.symbol = lib.mkForce "󰏗 "; + perl.symbol = lib.mkForce " "; + php.symbol = lib.mkForce " "; + pijul_channel.symbol = lib.mkForce " "; + python.symbol = lib.mkForce " "; + rlang.symbol = lib.mkForce "󰟔 "; + ruby.symbol = lib.mkForce " "; + rust.symbol = lib.mkForce "󱘗 "; + scala.symbol = lib.mkForce " "; + swift.symbol = lib.mkForce " "; + zig.symbol = lib.mkForce " "; + gradle.symbol = lib.mkForce " "; + } - # https://starship.rs/presets/nerd-font - # aws.symbol = ""; - # buf.symbol = ""; - # c.symbol = ""; - # conda.symbol = ""; - # crystal.symbol = ""; - # dart.symbol = ""; - # directory.read_only = "󰌾"; - # docker_context.symbol = ""; - # elixir.symbol = ""; - # elm.symbol = ""; - # fennel.symbol = ""; - # fossil_branch.symbol = ""; - # git_branch.symbol = ""; - # git_commit.tag_symbol = ""; - # golang.symbol = ""; - # guix_shell.symbol = ""; + { + format = lib.mkForce ( + lib.concatStrings [ + "$username " + "$directory " + "$git_branch " + "$git_status " + "$fill " + "$c " + "$elixir " + "$elm " + "$golang " + "$haskell " + "$java " + "$julia " + "$nodejs " + "$nim " + "$rust " + "$scala " + "$python " + "$time " + "$line_break " + "[󱞪](fg:iris) " + ] + ); } ]; }; diff --git a/home/starship/nerd-font-symbols.toml b/home/starship/nerd-font-symbols.toml deleted file mode 100644 index 65c0b74..0000000 --- a/home/starship/nerd-font-symbols.toml +++ /dev/null @@ -1,170 +0,0 @@ -[aws] -symbol = " " - -[buf] -symbol = " " - -[c] -symbol = " " - -[conda] -symbol = " " - -[crystal] -symbol = " " - -[dart] -symbol = " " - -[directory] -read_only = " 󰌾" - -[docker_context] -symbol = " " - -[elixir] -symbol = " " - -[elm] -symbol = " " - -[fennel] -symbol = " " - -[fossil_branch] -symbol = " " - -[git_branch] -symbol = " " - -[git_commit] -tag_symbol = '  ' - -[golang] -symbol = " " - -[guix_shell] -symbol = " " - -[haskell] -symbol = " " - -[haxe] -symbol = " " - -[hg_branch] -symbol = " " - -[hostname] -ssh_symbol = " " - -[java] -symbol = " " - -[julia] -symbol = " " - -[kotlin] -symbol = " " - -[lua] -symbol = " " - -[memory_usage] -symbol = "󰍛 " - -[meson] -symbol = "󰔷 " - -[nim] -symbol = "󰆥 " - -[nix_shell] -symbol = " " - -[nodejs] -symbol = " " - -[ocaml] -symbol = " " - -[os.symbols] -Alpaquita = " " -Alpine = " " -AlmaLinux = " " -Amazon = " " -Android = " " -Arch = " " -Artix = " " -CentOS = " " -Debian = " " -DragonFly = " " -Emscripten = " " -EndeavourOS = " " -Fedora = " " -FreeBSD = " " -Garuda = "󰛓 " -Gentoo = " " -HardenedBSD = "󰞌 " -Illumos = "󰈸 " -Kali = " " -Linux = " " -Mabox = " " -Macos = " " -Manjaro = " " -Mariner = " " -MidnightBSD = " " -Mint = " " -NetBSD = " " -NixOS = " " -OpenBSD = "󰈺 " -openSUSE = " " -OracleLinux = "󰌷 " -Pop = " " -Raspbian = " " -Redhat = " " -RedHatEnterprise = " " -RockyLinux = " " -Redox = "󰀘 " -Solus = "󰠳 " -SUSE = " " -Ubuntu = " " -Unknown = " " -Void = " " -Windows = "󰍲 " - -[package] -symbol = "󰏗 " - -[perl] -symbol = " " - -[php] -symbol = " " - -[pijul_channel] -symbol = " " - -[python] -symbol = " " - -[rlang] -symbol = "󰟔 " - -[ruby] -symbol = " " - -[rust] -symbol = "󱘗 " - -[scala] -symbol = " " - -[swift] -symbol = " " - -[zig] -symbol = " " - -[gradle] -symbol = " "