mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 07:56:34 +01:00
46 lines
918 B
Nix
46 lines
918 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;
|
|
# carapace.package = pkgs.carapace.overrideAttrs {
|
|
# src = /home/jopejoe1/dev/carapace-bin/././././.;
|
|
# vendorHash = "sha256-z2sxm+qxSCU60kJqI6Rg9KQRizqgJlZWjvb0zxwSL2o=";
|
|
# };
|
|
|
|
starship = {
|
|
enable = true;
|
|
settings = {
|
|
add_newline = true;
|
|
character = {
|
|
success_symbol = "[➜](bold green)";
|
|
error_symbol = "[➜](bold red)";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|