nixos-config/configurations/profile/home/shell/starship.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

{ config, pkgs, lib, materusArg, ... }:
2023-10-08 11:42:08 +02:00
let
profile = config.materus.profile;
cfg = config.materus.profile.starship;
in
{
options.materus.profile.starship.enable = materusArg.pkgs.lib.mkBoolOpt (profile.zsh.enable || profile.bash.enable || profile.fish.enable) "Enable materus fish config";
2023-10-08 11:42:08 +02:00
config = lib.mkIf cfg.enable {
programs.starship.enable = lib.mkDefault cfg.enable;
programs.starship.settings = {
python = {
symbol = " ";
};
format = "$username@$hostname$all";
right_format = "$cmd_duration $time";
2024-03-11 16:19:31 +01:00
2023-10-08 11:42:08 +02:00
time = {
disabled = false;
style = "bold bright-black";
format = "[$time]($style)";
};
line_break = { disabled = true; };
shell = {
disabled = false;
fish_indicator = "fish";
2024-03-11 16:19:31 +01:00
bash_indicator = "bash";
zsh_indicator = "zsh";
2023-10-08 11:42:08 +02:00
style = "blue bold";
};
hostname = {
ssh_only = false;
};
username = {
disabled = false;
show_always = true;
format = "[$user]($style)";
style_user = "white bold";
style_root = "black bold";
};
};
};
}