nix-conf/home-modules/nushell/default.nix

47 lines
918 B
Nix
Raw Normal View History

2024-07-10 23:02:54 +02:00
{
config,
lib,
pkgs,
...
}:
2024-01-14 21:11:06 +01:00
2024-07-10 23:02:54 +02:00
let
cfg = config.jopejoe1.nushell;
in
{
2024-01-14 21:11:06 +01:00
options.jopejoe1.nushell = {
enable = lib.mkEnableOption "Enable Nushell";
};
config = lib.mkIf cfg.enable {
programs = {
nushell = {
enable = true;
2024-07-12 21:51:00 +02:00
extraConfig = ''
$env.config = {
show_banner: false,
}
'';
2024-01-14 21:11:06 +01:00
};
2024-07-10 22:11:11 +02:00
2024-01-14 21:11:06 +01:00
carapace.enable = true;
carapace.enableNushellIntegration = true;
2024-09-30 19:32:08 +02:00
# carapace.package = pkgs.carapace.overrideAttrs {
# src = /home/jopejoe1/dev/carapace-bin/././././.;
# vendorHash = "sha256-z2sxm+qxSCU60kJqI6Rg9KQRizqgJlZWjvb0zxwSL2o=";
# };
2024-01-14 21:11:06 +01:00
starship = {
enable = true;
settings = {
add_newline = true;
character = {
success_symbol = "[](bold green)";
error_symbol = "[](bold red)";
};
};
};
};
};
}