mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 10:26:51 +01:00
42 lines
713 B
Nix
42 lines
713 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.jopejoe1.nushell;
|
|
in
|
|
{
|
|
options.jopejoe1.nushell = {
|
|
enable = lib.mkEnableOption "Enable Nushell";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs = {
|
|
nushell = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
$env.config = {
|
|
show_banner: false,
|
|
}
|
|
'';
|
|
};
|
|
|
|
carapace.enable = true;
|
|
carapace.enableNushellIntegration = true;
|
|
|
|
starship = {
|
|
enable = true;
|
|
settings = {
|
|
add_newline = true;
|
|
character = {
|
|
success_symbol = "[➜](bold green)";
|
|
error_symbol = "[➜](bold red)";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|