nixos/starship: cleanup
This commit is contained in:
parent
4f9d91e276
commit
debb92775e
|
@ -26,25 +26,20 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.programs.starship = {
|
options.programs.starship = {
|
||||||
enable = lib.mkEnableOption (lib.mdDoc "the Starship shell prompt");
|
enable = lib.mkEnableOption "the Starship shell prompt";
|
||||||
|
|
||||||
package = lib.mkPackageOption pkgs "starship" { };
|
package = lib.mkPackageOption pkgs "starship" { };
|
||||||
|
|
||||||
interactiveOnly = lib.mkOption {
|
interactiveOnly = lib.mkEnableOption ''
|
||||||
default = true;
|
starship only when the shell is interactive.
|
||||||
example = false;
|
Some plugins require this to be set to false to function correctly
|
||||||
type = lib.types.bool;
|
'' // { default = true; };
|
||||||
description = lib.mdDoc ''
|
|
||||||
Whether to enable starship only when the shell is interactive.
|
|
||||||
Some plugins require this to be set to false to function correctly.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
presets = lib.mkOption {
|
presets = lib.mkOption {
|
||||||
default = [ ];
|
default = [ ];
|
||||||
example = [ "nerd-font-symbols" ];
|
example = [ "nerd-font-symbols" ];
|
||||||
type = with lib.types; listOf str;
|
type = with lib.types; listOf str;
|
||||||
description = lib.mdDoc ''
|
description = ''
|
||||||
Presets files to be merged with settings in order.
|
Presets files to be merged with settings in order.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -52,7 +47,7 @@ in
|
||||||
settings = lib.mkOption {
|
settings = lib.mkOption {
|
||||||
inherit (settingsFormat) type;
|
inherit (settingsFormat) type;
|
||||||
default = { };
|
default = { };
|
||||||
description = lib.mdDoc ''
|
description = ''
|
||||||
Configuration included in `starship.toml`.
|
Configuration included in `starship.toml`.
|
||||||
|
|
||||||
See https://starship.rs/config/#prompt for documentation.
|
See https://starship.rs/config/#prompt for documentation.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user