nix-config/modules/home-manager/terminal/nushell/default.nix

44 lines
1 KiB
Nix
Raw Normal View History

2024-03-24 17:39:49 -05:00
{
config,
lib,
2024-03-24 17:39:49 -05:00
pkgs,
...
}: {
options.user.nushell.enable = lib.mkEnableOption "enable nushell";
config = lib.mkIf config.user.nushell.enable {
home.file = {
".config/nushell/completions".source = ./completions;
};
2024-03-24 17:39:49 -05:00
programs = {
#sessionVariables, sessionPath and shellAliases are not applied to nushell.
nushell = {
enable = true;
configFile.source = ./config.nu;
envFile.source = ./env.nu;
};
2024-03-24 17:39:49 -05:00
yazi.enableNushellIntegration = true;
zoxide.enableNushellIntegration = true;
starship.enableNushellIntegration = true;
eza.enableNushellIntegration = true;
carapace = {
enable = true;
enableNushellIntegration = true;
};
direnv.enableNushellIntegration = true;
};
services = {
gpg-agent.enableNushellIntegration = true;
pueue = {
enable = true;
settings = {
daemon = {
default_parallel_tasks = 5;
};
};
2024-03-24 17:39:49 -05:00
};
};
};
}