rose-pine-nix/modules/home-manager/starship.nix

18 lines
491 B
Nix
Raw Normal View History

2024-05-21 14:53:46 -07:00
{ config, lib, ... }:
let
inherit (config.catppuccin) sources;
cfg = config.programs.starship.catppuccin;
enable = cfg.enable && config.programs.starship.enable;
in
2023-03-27 17:32:26 -07:00
{
options.programs.starship.catppuccin = lib.ctp.mkCatppuccinOpt { name = "starship"; };
2023-03-27 17:32:26 -07:00
2024-05-21 14:53:46 -07:00
config.programs.starship.settings = lib.mkIf enable (
{
format = lib.mkDefault "$all";
palette = "catppuccin_${cfg.flavor}";
2024-05-21 14:53:46 -07:00
}
// lib.importTOML "${sources.starship}/palettes/${cfg.flavor}.toml"
2024-05-21 14:53:46 -07:00
);
2023-03-27 17:32:26 -07:00
}