2024-05-20 21:14:35 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
options.nushell-plugins = lib.mkOption { };
|
|
|
|
|
2024-11-15 12:47:46 +01:00
|
|
|
config.nushell-plugins = {
|
|
|
|
jobcontrol = (builtins.getFlake
|
|
|
|
"git+https://git.mzte.de/LordMZTE/nu-plugin-jobcontrol.git?rev=3a02910ff138691ecf3557722411e53261d900d4"
|
|
|
|
).outputs.packages.${pkgs.system}.default;
|
2024-07-31 09:47:56 +02:00
|
|
|
|
2024-11-23 18:25:09 +01:00
|
|
|
inherit (pkgs.nushellPlugins) polars formats query dbus;
|
2024-11-15 12:47:46 +01:00
|
|
|
};
|
2024-05-20 21:14:35 +02:00
|
|
|
|
2024-07-22 18:12:31 +02:00
|
|
|
config.output.packages.nushell-plugins = pkgs.writeTextFile {
|
|
|
|
name = "add-plugins.nu";
|
|
|
|
text = builtins.concatStringsSep "\n"
|
2024-11-15 12:47:46 +01:00
|
|
|
(lib.mapAttrsToList
|
|
|
|
(name: d:
|
2024-07-22 18:12:31 +02:00
|
|
|
''
|
2024-11-15 12:47:46 +01:00
|
|
|
plugin add ${lib.getBin d}/bin/nu_plugin_${name}
|
2024-07-22 18:12:31 +02:00
|
|
|
'')
|
|
|
|
config.nushell-plugins);
|
|
|
|
};
|
2024-05-20 21:14:35 +02:00
|
|
|
}
|