nixos/starship: cleanup

Changed files
+7 -12
nixos
modules
programs
+7 -12
nixos/modules/programs/starship.nix
···
in
{
options.programs.starship = {
-
enable = lib.mkEnableOption (lib.mdDoc "the Starship shell prompt");
package = lib.mkPackageOption pkgs "starship" { };
-
interactiveOnly = lib.mkOption {
-
default = true;
-
example = false;
-
type = lib.types.bool;
-
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 {
default = [ ];
example = [ "nerd-font-symbols" ];
type = with lib.types; listOf str;
-
description = lib.mdDoc ''
Presets files to be merged with settings in order.
'';
};
···
settings = lib.mkOption {
inherit (settingsFormat) type;
default = { };
-
description = lib.mdDoc ''
Configuration included in `starship.toml`.
See https://starship.rs/config/#prompt for documentation.
···
in
{
options.programs.starship = {
+
enable = lib.mkEnableOption "the Starship shell prompt";
package = lib.mkPackageOption pkgs "starship" { };
+
interactiveOnly = lib.mkEnableOption ''
+
starship only when the shell is interactive.
+
Some plugins require this to be set to false to function correctly
+
'' // { default = true; };
presets = lib.mkOption {
default = [ ];
example = [ "nerd-font-symbols" ];
type = with lib.types; listOf str;
+
description = ''
Presets files to be merged with settings in order.
'';
};
···
settings = lib.mkOption {
inherit (settingsFormat) type;
default = { };
+
description = ''
Configuration included in `starship.toml`.
See https://starship.rs/config/#prompt for documentation.