Skip to content

Support programs.starship.preset to use official Starship presets #7297

@computerjoh

Description

@computerjoh

Description

Starship offers official prompt presets at https://starship.rs/presets/, e.g. the "pure" preset:

https://starship.rs/presets/toml/pure-preset.toml

It would be helpful if programs.starship supported a simple preset option:

programs.starship = {
  enable = true;
  preset = "pure";
};

This would fetch the preset via builtins.fetchurl and override settings.

I realize this may cause some hiccups with reproducibility, so please let me know if this is not feasible or if there's a better way to achieve this.

Happy to PR if needed.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions