nixcfg/modules/home/cli-apps/starship/default.nix
Harald Hoyer bbc247aa23 refactor: simplify Nix configuration and update dependencies
Replaced custom Nerd Fonts overrides with predefined ones. Removed unused Neovim settings and plugins, and disabled Neovim for a specific user. Updated various flake dependencies to their latest versions.
2025-05-27 12:59:30 +02:00

38 lines
841 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.nerd-fonts.fira-code
pkgs.nerd-fonts.droid-sans-mono
pkgs.nerd-fonts.jetbrains-mono
];
programs.starship = {
enable = true;
settings = {
shell.disabled = false;
shell.fish_indicator = "";
shell.bash_indicator = "";
shell.unknown_indicator = "";
container.format = "[\\[$name\\]]($style) ";
git_status = {
ahead = "\${count}";
diverged = "\${ahead_count}\${behind_count}";
behind = "\${count}";
};
};
};
};
}