mio-ops/modules/profiles/starship/default.nix

25 lines
551 B
Nix
Raw Normal View History

2024-09-23 09:31:53 +00:00
# A minimal, blazing fast, and extremely customizable prompt for any shell
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.profiles.starship;
in {
options.profiles.starship = {
enable = mkEnableOption "to enable the starship prompt.";
};
config = mkIf (cfg.enable) {
2024-09-23 16:06:17 +00:00
fonts.packages = with pkgs; [
nerdfonts # Iconic font aggregator, collection, & patcher
];
programs.starship = {
enable = true;
presets = ["nerd-font-symbols"];
settings = pkgs.lib.importTOML ./craige.toml;
2024-09-23 16:06:17 +00:00
};
2024-09-23 09:31:53 +00:00
};
}