16 lines
263 B
Nix
16 lines
263 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.profiles.starship;
|
|
in {
|
|
options.profiles.starship = {
|
|
enable = mkEnableOption "to enable the starship prompt.";
|
|
};
|
|
config = mkIf (cfg.enable) {
|
|
programs.starship.enable = true;
|
|
};
|
|
}
|