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
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc

View file

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