22 lines
463 B
Nix
22 lines
463 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.my.cli.shell.starship;
|
|
in
|
|
{
|
|
options.my.cli.shell.starship = {
|
|
enable = lib.mkEnableOption "starship prompt";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
my.hm = {
|
|
programs.starship = {
|
|
enable = true;
|
|
settings = lib.recursiveUpdate (with builtins; fromTOML (readFile ./starship-preset.toml)) {
|
|
add_newline = false;
|
|
nix_shell.disabled = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|