nixcfg/modules/home/cli-apps/starship/default.nix
Harald Hoyer e8243a159d feat(starship): update shell settings configuration
- Enable `shell.disabled` option to ensure shell functionality.
- Add `shell.fish_indicator` with a fish emoji for Fish shell users.
2025-01-20 13:46:05 +01:00

42 lines
805 B
Nix

{
lib,
config,
pkgs,
...
}:
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; [
(pkgs.nerdfonts.override {
fonts = [
"FiraCode"
"DroidSansMono"
"JetBrainsMono"
];
})
];
programs.starship = {
enable = true;
settings = {
shell.disabled = false;
shell.fish_indicator = "🐟";
container.format = "[\\[$name\\]]($style) ";
git_status = {
ahead = "\${count}";
diverged = "\${ahead_count}\${behind_count}";
behind = "\${count}";
};
};
};
};
}