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

29 lines
517 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";
};
};
2022-08-29 15:40:41 +03:00
2022-08-24 14:02:45 +03:00
config = mkIf cfg.enable {
programs.starship = {
enable = true;
enableZshIntegration = config.shell.zsh.enable;
settings = starshipConfig;
};
};
}