From 9a09399ca3a6b69e03e92094d724d1eb42386546 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Wed, 22 Apr 2026 23:40:35 -0500 Subject: [PATCH] broke out starship --- modules/programs/starship.nix | 54 +++++++++++++++++++++++++++++++++++ modules/programs/zsh.nix | 50 -------------------------------- 2 files changed, 54 insertions(+), 50 deletions(-) create mode 100644 modules/programs/starship.nix diff --git a/modules/programs/starship.nix b/modules/programs/starship.nix new file mode 100644 index 0000000..d2998ed --- /dev/null +++ b/modules/programs/starship.nix @@ -0,0 +1,54 @@ +{ self, inputs, ... }: { + perSystem = { system, pkgs, lib, ... }: { + packages.starship = (inputs.wrappers.wrapperModules.starship.apply { + inherit pkgs; + settings = lib.recursiveUpdate (lib.importTOML (pkgs.fetchurl { + url = https://starship.rs/presets/toml/catppuccin-powerline.toml; + sha256 = "0bd8zx0bpri63rnb9dva0rav75d3i2wrzw44h63m75hq5220r26g"; + })) { + palette = "catppuccin_mocha"; + add_newline = true; + line_break.disabled = false; + git_status.diverged = "⇕⇡\${ahead_count}⇣\${behind_count}"; + cmd_duration.format = "󰔛 $duration"; + cmd_duration.show_notifications = false; + hostname = { + disabled = false; + ssh_symbol = "🌐"; + format = "[$ssh_symbol$hostname]($style)"; + style = "bg:red fg:crust"; + }; + os.symbols.NixOS = " "; + format = lib.replaceStrings ["\n"] [""] '' + [](red) + $os + $username + $hostname + [](bg:peach fg:red) + $directory + [](bg:yellow fg:peach) + $git_branch + $git_status + [](fg:yellow bg:green) + $c + $rust + $golang + $nodejs + $php + $java + $kotlin + $haskell + $python + [](fg:green bg:sapphire) + $conda + [](fg:sapphire bg:lavender) + $time + [ ](fg:lavender) + $cmd_duration + $line_break + $character + ''; + }; + }).wrapper; + }; +} \ No newline at end of file diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index 2ba7c40..807c3a5 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -139,55 +139,5 @@ in self'.packages.shell-tools ]; }).wrapper; - - packages.starship = (inputs.wrappers.wrapperModules.starship.apply { - inherit pkgs; - settings = lib.recursiveUpdate (lib.importTOML (pkgs.fetchurl { - url = https://starship.rs/presets/toml/catppuccin-powerline.toml; - sha256 = "0bd8zx0bpri63rnb9dva0rav75d3i2wrzw44h63m75hq5220r26g"; - })) { - palette = "catppuccin_mocha"; - add_newline = true; - line_break.disabled = false; - git_status.diverged = "⇕⇡\${ahead_count}⇣\${behind_count}"; - cmd_duration.format = "󰔛 $duration"; - hostname = { - disabled = false; - ssh_symbol = "🌐"; - format = "[$ssh_symbol$hostname]($style)"; - style = "bg:red fg:crust"; - }; - os.symbols.NixOS = " "; - format = lib.replaceStrings ["\n"] [""] '' - [](red) - $os - $username - $hostname - [](bg:peach fg:red) - $directory - [](bg:yellow fg:peach) - $git_branch - $git_status - [](fg:yellow bg:green) - $c - $rust - $golang - $nodejs - $php - $java - $kotlin - $haskell - $python - [](fg:green bg:sapphire) - $conda - [](fg:sapphire bg:lavender) - $time - [ ](fg:lavender) - $cmd_duration - $line_break - $character - ''; - }; - }).wrapper; }; } \ No newline at end of file