2023-07-13 16:17:51 +00:00
|
|
|
{ config
|
|
|
|
, lib
|
2023-11-02 17:55:47 +00:00
|
|
|
, sources
|
2023-07-13 16:17:51 +00:00
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (builtins) fromTOML readFile;
|
|
|
|
cfg = config.programs.starship.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.starship.enable;
|
|
|
|
in
|
2023-03-28 00:32:26 +00:00
|
|
|
{
|
2023-04-17 16:44:07 +00:00
|
|
|
options.programs.starship.catppuccin =
|
2023-11-02 17:55:47 +00:00
|
|
|
lib.ctp.mkCatppuccinOpt "starship";
|
2023-03-28 00:32:26 +00:00
|
|
|
|
2023-07-13 16:17:51 +00:00
|
|
|
config.programs.starship.settings =
|
|
|
|
lib.mkIf enable
|
|
|
|
({
|
|
|
|
format = lib.mkDefault "$all";
|
|
|
|
palette = "catppuccin_${cfg.flavour}";
|
|
|
|
}
|
2023-11-02 17:55:47 +00:00
|
|
|
// fromTOML (readFile "${sources.starship}/palettes/${cfg.flavour}.toml"));
|
2023-03-28 00:32:26 +00:00
|
|
|
}
|