system/nix/shell/prompt/starship/default.nix

29 lines
519 B
Nix
Raw Normal View History

2022-08-24 14:02:45 +03:00
{ 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;
};
};
}