2024-03-24 23:39:49 +01:00
|
|
|
{
|
|
|
|
config,
|
2024-05-29 22:18:13 +02:00
|
|
|
lib,
|
2024-03-24 23:39:49 +01:00
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-05-29 22:18:13 +02:00
|
|
|
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 23:39:49 +01:00
|
|
|
|
2024-05-29 22:18:13 +02: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 23:39:49 +01:00
|
|
|
|
2024-05-29 22:18:13 +02: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 23:39:49 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|