dotfiles/nix/nushell-plugins.nix

24 lines
675 B
Nix
Raw Normal View History

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-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
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-11-15 12:47:46 +01:00
plugin add ${lib.getBin d}/bin/nu_plugin_${name}
'')
config.nushell-plugins);
};
2024-05-20 21:14:35 +02:00
}