modules/dependencies: init + add curl

This commit is contained in:
Gaetan Lepage 2025-04-06 17:17:51 +02:00 committed by nix-infra-bot
parent 33c3f98fdc
commit cfd4b61262
11 changed files with 97 additions and 28 deletions

View file

@ -1,7 +1,6 @@
{
lib,
helpers,
pkgs,
...
}:
with lib;
@ -12,13 +11,15 @@ lib.nixvim.plugins.mkNeovimPlugin {
maintainers = [ maintainers.GaetanLepage ];
extraOptions = {
curlPackage = lib.mkPackageOption pkgs "curl" {
nullable = true;
};
};
# TODO: added 2025-04-06, remove after 25.05
imports = [
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "chatgpt";
packageName = "curl";
})
];
extraConfig = cfg: { extraPackages = [ cfg.curlPackage ]; };
extraConfig = cfg: { dependencies.curl.enable = lib.mkDefault true; };
settingsOptions = {
api_key_cmd = helpers.defaultNullOpts.mkStr null ''