rose-pine-nix/modules/home-manager/starship.nix
punkfairie 4ce7b95d1b
Some checks are pending
CI / Format Nix files (push) Waiting to run
CI / Test Modules (push) Waiting to run
CI / Validate sources (push) Waiting to run
Release / Make release (push) Waiting to run
Release / Publish to Flake registries (push) Blocked by required conditions
Build & deploy website / Build site (push) Waiting to run
Build & deploy website / Deploy website (push) Blocked by required conditions
feat(starship): Starship fixes
2024-11-02 19:39:55 -07:00

20 lines
492 B
Nix

{
config,
lib,
...
}:
let
inherit (config.rose-pine) sources;
cfg = config.programs.starship.rose-pine;
enable = cfg.enable && config.programs.starship.enable;
themeName = if (cfg.flavor == "main") then "rose-pine" else "rose-pine-${cfg.flavor}";
in
{
options.programs.starship.rose-pine = lib.rp.mkRosePineOpt { name = "starship"; };
config.programs.starship.settings = lib.mkIf enable (
lib.mkDefault (lib.importTOML "${sources.starship}/${themeName}.toml")
);
}