Skip to content

Commit

Permalink
starship: use nerd font symbols preset
Browse files Browse the repository at this point in the history
  • Loading branch information
brckd committed Jul 11, 2024
1 parent f28a3ae commit df9d46a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/home/starship/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
config,
pkgs,
lib,
...
}:
with lib; let
cfg = config.programs.starship;
loadPreset = name: with builtins; fromTOML (readFile "${pkgs.starship}/share/starship/presets/${name}.toml");
nerdFontSymbols = loadPreset "nerd-font-symbols";
in {
config = mkIf cfg.enable {
programs.starship = {
settings = {
git_branch.symbol = " ";
};
};
programs.starship.settings = nerdFontSymbols // {};
};
}

0 comments on commit df9d46a

Please sign in to comment.