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