NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(shells): move starship stuff to custom-prompts.nix

I have to decouple prompt customizations outside bash.nix to keep
things organized at least.

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+49 -18
+11 -1
misc/starship.toml
··· 4 4 scan_timeout = 50 5 5 command_timeout = 3500 6 6 7 - ## GENERATED BY NIXOS STARTS BELOW THIS LINE ## 7 + [direnv] 8 + disabled = false 9 + allowed_msg = "allowed" 10 + not_allowed_msg = "pending" 11 + denied_msg = "blocked" 12 + loaded_msg = "loaded" 13 + not_loaded_msg = "unloaded" 14 + 15 + ## GENERATED BY NIXOS + CUSTOMIZATIONS STARTS BELOW THIS LINE ## 8 16 [aws] 9 17 symbol = " " 10 18 format = "\\[[$symbol($profile)(\\($region\\))(\\[$duration\\])]($style)\\]" ··· 46 54 47 55 [directory] 48 56 read_only = " 󰌾" 57 + truncation_length = 4 58 + truncation_symbol = ".../" 49 59 50 60 [docker_context] 51 61 symbol = " "
-17
shared/shells/bash.nix
··· 8 8 package = pkgs.bash-completion; 9 9 }; 10 10 }; 11 - starship = { 12 - package = pkgs.starship; 13 - enable = true; 14 - presets = [ 15 - "nerd-font-symbols" 16 - "bracketed-segments" 17 - ]; 18 - settings = { 19 - scan_timeout = 50; 20 - command_timeout = 3500; 21 - }; 22 - }; 23 11 }; 24 - 25 - # additional packages for use in bash shell (e.g. ble.sh) 26 - environment.systemPackages = with pkgs; [ 27 - blesh 28 - ]; 29 12 }
+38
shared/shells/custom-prompts.nix
··· 1 + { pkgs, ... }: 2 + 3 + { 4 + programs.starship = { 5 + package = pkgs.starship; 6 + enable = true; 7 + presets = [ 8 + "nerd-font-symbols" 9 + "bracketed-segments" 10 + "no-runtime-versions" 11 + ]; 12 + settings = { 13 + scan_timeout = 50; 14 + command_timeout = 15000; 15 + directory = { 16 + truncation_length = 4; 17 + truncation_symbol = ".../"; 18 + }; 19 + direnv = { 20 + disabled = false; 21 + allowed_msg = "allowed"; 22 + not_allowed_msg = "pending"; 23 + denied_msg = "blocked"; 24 + loaded_msg = "loaded"; 25 + not_loaded_msg = "unloaded"; 26 + }; 27 + }; 28 + }; 29 + 30 + # enable ble.sh integration for starship 31 + programs.bash.blesh.enable = true; 32 + 33 + # additional packages for use in shells (e.g. ble.sh) 34 + environment.systemPackages = with pkgs; [ 35 + blesh 36 + starship 37 + ]; 38 + }