{ lib, config, pkgs, ... }: with lib; let cfg = config.shell.prompt.starship; starshipConfig = import ./config.nix { inherit concatStrings; }; in { options.shell.prompt.starship = { enable = mkOption { type = types.bool; default = false; description = "Enable starship cross-shell prompt"; }; }; config = mkIf cfg.enable { programs.starship = { enable = true; enableZshIntegration = config.shell.zsh.enable; settings = starshipConfig; }; }; }