moved starship configuration to separate file
This commit is contained in:
		
							parent
							
								
									8a79aa18d4
								
							
						
					
					
						commit
						a72108d49f
					
				
					 2 changed files with 65 additions and 48 deletions
				
			
		|  | @ -39,54 +39,6 @@ in { | |||
|           }; | ||||
|         }; | ||||
| 
 | ||||
|         starship = { | ||||
|           enable = true; | ||||
|           enableTransience = true; | ||||
|           settings = { | ||||
|             character = { | ||||
|               error_symbol = "[ ](bold red)"; | ||||
|             }; | ||||
|             time = { | ||||
|               disabled = false; | ||||
|               time_format = "%T"; | ||||
|               utc_time_offset = "+1"; | ||||
|             }; | ||||
|             username = { | ||||
|               style_user = "#00de00"; | ||||
|               style_root = "red"; | ||||
|               format = "[$user]($style) "; | ||||
|               disabled = false; | ||||
|               show_always = true; | ||||
|             }; | ||||
|             hostname = { | ||||
|               ssh_only = false; | ||||
|               format = "@ [$hostname](bold yellow) "; | ||||
|               disabled = false; | ||||
|             }; | ||||
|             directory = { | ||||
|               home_symbol = " ~"; | ||||
|               read_only_style = "197"; | ||||
|               read_only = "  "; | ||||
|               format = "at [$path]($style)[$read_only]($read_only_style) "; | ||||
|             }; | ||||
|             git_metrics = { | ||||
|               disabled = false; | ||||
|               added_style = "bold blue"; | ||||
|               format = "[+$added]($added_style)/[-$deleted]($deleted_style) "; | ||||
|             }; | ||||
|             git_status = { | ||||
|               ahead = "↑$count(green)"; | ||||
|               behind = "↓$count(red)"; | ||||
|               diverged = "↕↓ahead_count(green)↑behind_count(red)"; | ||||
|               deleted = "✘$count"; | ||||
|               modified = "!$count"; | ||||
|               staged = "✚$count"; | ||||
|               renamed = "➜$count"; | ||||
|               untracked = "?$count"; | ||||
|             }; | ||||
|           }; | ||||
|         }; | ||||
| 
 | ||||
|         zoxide = { | ||||
|           enable = true; | ||||
|           options = [ | ||||
|  |  | |||
							
								
								
									
										65
									
								
								modules/home/apps/cli-apps/starship/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										65
									
								
								modules/home/apps/cli-apps/starship/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,65 @@ | |||
| { | ||||
|   options, | ||||
|   config, | ||||
|   lib, | ||||
|   pkgs, | ||||
|   ... | ||||
| }: | ||||
| with lib; | ||||
| with lib.wyrdgard; let | ||||
|   cfg = config.wyrdgard.apps.cli-apps.starship; | ||||
| in { | ||||
|   options.wyrdgard.apps.cli-apps.starship = with types; { | ||||
|     enable = mkBoolOpt true "Whether or not to enable starship shell"; | ||||
|   }; | ||||
| 
 | ||||
|   config = mkIf cfg.enable { | ||||
|     programs.starship = { | ||||
|       enable = true; | ||||
|       enableTransience = true; | ||||
|       settings = { | ||||
|         character = { | ||||
|           error_symbol = "[ ](bold red)"; | ||||
|         }; | ||||
|         time = { | ||||
|           disabled = false; | ||||
|           time_format = "%T"; | ||||
|           utc_time_offset = "+1"; | ||||
|         }; | ||||
|         username = { | ||||
|           style_user = "#00de00"; | ||||
|           style_root = "red"; | ||||
|           format = "[$user]($style) "; | ||||
|           disabled = false; | ||||
|           show_always = true; | ||||
|         }; | ||||
|         hostname = { | ||||
|           ssh_only = false; | ||||
|           format = "@ [$hostname](bold yellow) "; | ||||
|           disabled = false; | ||||
|         }; | ||||
|         directory = { | ||||
|           home_symbol = " ~"; | ||||
|           read_only_style = "197"; | ||||
|           read_only = "  "; | ||||
|           format = "at [$path]($style)[$read_only]($read_only_style) "; | ||||
|         }; | ||||
|         git_metrics = { | ||||
|           disabled = false; | ||||
|           added_style = "bold blue"; | ||||
|           format = "[+$added]($added_style)/[-$deleted]($deleted_style) "; | ||||
|         }; | ||||
|         git_status = { | ||||
|           ahead = "[ ↑$count](bold green)"; | ||||
|           behind = "[↓$count](bold red)"; | ||||
|           diverged = "[↕↓$ahead_count↑$behind_count](red)"; | ||||
|           deleted = "[✘$count](red)"; | ||||
|           modified = "[!$count](yellow)"; | ||||
|           staged = "[+$count](green)"; | ||||
|           renamed = "[➜$count](green)"; | ||||
|           untracked = "[?$count](blue)"; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue