From 5e5f64dc80575dc7829ac38862ab0e49b1797cf7 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 8 May 2023 14:24:19 -0400 Subject: [PATCH] nix: Add starship config Similar to fish, there's some relief in knowing that I can declare my starship settings in Nix and have them accessible from any user on the machine, even root. --- configuration.nix | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 1af96bf..5aa3b95 100644 --- a/configuration.nix +++ b/configuration.nix @@ -109,7 +109,39 @@ services.xserver.desktopManager.gnome.enable = true; programs.thunar.enable = true; - programs.starship.enable = true; + programs.starship = { + enable = true; + settings = { + add_newline = false; + directory = { + style = "purple"; + read_only = " ro"; + }; + + git_branch = { + style = "yellow"; + symbol = ""; + }; + + character = { + #success_symbol = "[➤](red)[➤](green)[➤](blue)"; + #error_symbol = "[➤](cyan)[➤](purple)[➤](yellow)"; + success_symbol = "[>](red)[>](green)[>](blue)"; + error_symbol = "[>](cyan)[>](purple)[>](yellow)"; + vicmd_symbol = "[<](bold green)"; + }; + + line_break = { disabled = true; }; + + nodejs = { + format = "with [$symbol($version )]($style)"; + symbol = "node "; + version_format = "\${major}"; + disabled = true; + }; + + }; + }; programs.neovim.enable = true; programs.hyprland.enable = true; programs.git.enable = true;