rose-pine-nix/modules/home-manager/starship.nix
github-actions[bot] 3c3196c8c7
chore(modules): update ports (#307)
* chore(modules): update ports

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix(home-manager/starship): use new config file path

* fix(home-manager/mako): use new theme path

---------

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: getchoo <48872998+getchoo@users.noreply.github.com>
Co-authored-by: seth <getchoo@tuta.io>
2024-08-18 18:34:54 -04:00

17 lines
489 B
Nix

{ config, lib, ... }:
let
inherit (config.catppuccin) sources;
cfg = config.programs.starship.catppuccin;
enable = cfg.enable && config.programs.starship.enable;
in
{
options.programs.starship.catppuccin = lib.ctp.mkCatppuccinOpt { name = "starship"; };
config.programs.starship.settings = lib.mkIf enable (
{
format = lib.mkDefault "$all";
palette = "catppuccin_${cfg.flavor}";
}
// lib.importTOML "${sources.starship}/themes/${cfg.flavor}.toml"
);
}