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
{
2024-04-01 22:10:17 +02:00
options.materus.profile.starship.enable = materusArg.pkgs.lib.mkBoolOpt false "Enable materus starship config";
2023-10-08 11:42:08 +02:00
config = lib.mkIf cfg.enable {
2024-04-01 22:10:17 +02:00
programs.starship.enable = true;
2023-10-08 11:42:08 +02:00
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";
};
};
};
}