2024-01-11 11:26:46 +01:00
|
|
|
{ lib
|
|
|
|
, config
|
|
|
|
, pkgs
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (lib) mkEnableOption mkIf;
|
|
|
|
|
2024-03-20 08:58:05 +01:00
|
|
|
cfg = config.metacfg.cli-apps.starship;
|
2024-01-11 11:26:46 +01:00
|
|
|
in
|
|
|
|
{
|
2024-03-20 08:58:05 +01:00
|
|
|
options.metacfg.cli-apps.starship = {
|
2024-01-11 11:26:46 +01:00
|
|
|
enable = mkEnableOption "starship";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
(pkgs.nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" "JetBrainsMono" ]; })
|
|
|
|
];
|
|
|
|
programs.starship = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
container.format = "[\\[$name\\]]($style) ";
|
|
|
|
git_status = {
|
|
|
|
ahead = "⇡$\{count}";
|
|
|
|
diverged = "⇕⇡$\{ahead_count}⇣$\{behind_count}";
|
|
|
|
behind = "⇣$\{count}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|