shell: fix and clean up plugin loading

This commit is contained in:
Schrottkatze 2024-08-01 07:44:41 +02:00
parent ab61d680ac
commit d8e2f19ced
No known key found for this signature in database

View file

@ -11,11 +11,6 @@
}; };
home.packages = [ home.packages = [
pkgs.pueue pkgs.pueue
pkgs.nushellPlugins.net
pkgs.nushellPlugins.query
pkgs.nushellPlugins.gstat
pkgs.nushellPlugins.polars
pkgs.nushellPlugins.formats
]; ];
programs.nushell = { programs.nushell = {
enable = true; enable = true;
@ -23,9 +18,13 @@
configFile.source = ../../other/config.nu; configFile.source = ../../other/config.nu;
envFile.source = ../../other/env.nu; envFile.source = ../../other/env.nu;
extraConfig = '' extraConfig = ''
plugin use ${pkgs.nushellPlugins.query}/bin/nu_plugin_query; plugin add ${pkgs.nushellPlugins.query}/bin/nu_plugin_query;
plugin use ${pkgs.nushellPlugins.polars}/bin/nu_plugin_polars; plugin add ${pkgs.nushellPlugins.polars}/bin/nu_plugin_polars;
plugin use ${pkgs.nushellPlugins.formats}/bin/nu_plugin_formats; plugin add ${pkgs.nushellPlugins.formats}/bin/nu_plugin_formats;
plugin use query;
plugin use polars;
plugin use formats;
''; '';
}; };
programs.starship.enableNushellIntegration = true; programs.starship.enableNushellIntegration = true;