2024-05-21 14:53:46 -07:00
|
|
|
{ config, lib, ... }:
|
2023-07-13 09:17:51 -07:00
|
|
|
let
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
2023-07-13 09:17:51 -07:00
|
|
|
cfg = config.programs.starship.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.starship.enable;
|
|
|
|
in
|
2023-03-27 17:32:26 -07:00
|
|
|
{
|
2024-05-21 14:53:46 -07:00
|
|
|
options.programs.starship.catppuccin = lib.ctp.mkCatppuccinOpt "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";
|
2024-05-21 17:23:55 -07:00
|
|
|
palette = "catppuccin_${cfg.flavor}";
|
2024-05-21 14:53:46 -07:00
|
|
|
}
|
2024-05-21 17:23:55 -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
|
|
|
}
|