mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-30 06:39:56 +02:00
modules/dependencies: init + add curl
This commit is contained in:
parent
33c3f98fdc
commit
cfd4b61262
11 changed files with 97 additions and 28 deletions
|
@ -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 ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue