lib/options: migrate defaultNullOpts to use pluginDefault

Rename all instances where the plugin default argument is named
`default` to `pluginDefault` to avoid conflict.
This commit is contained in:
Matt Sturgeon 2024-06-14 12:25:06 +01:00
parent e51b8b9b5c
commit 5cec79e59f
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
3 changed files with 49 additions and 49 deletions

View file

@ -6,7 +6,7 @@ with lib;
formatting = {
command = helpers.defaultNullOpts.mkListOf' {
type = types.str;
default = null;
pluginDefault = null;
description = ''
External formatting command, complete with required arguments.
@ -25,7 +25,7 @@ with lib;
excludedFiles = helpers.defaultNullOpts.mkListOf' {
type = types.str;
default = [ ];
pluginDefault = [ ];
description = ''
Files to exclude from showing diagnostics. Useful for generated files.
@ -38,13 +38,13 @@ with lib;
nix = {
binary = helpers.defaultNullOpts.mkStr' {
default = "nix";
pluginDefault = "nix";
description = "The path to the `nix` binary.";
example = "/run/current-system/sw/bin/nix";
};
maxMemoryMB = helpers.defaultNullOpts.mkUnsignedInt' {
default = 2560;
pluginDefault = 2560;
example = 1024;
description = ''
The heap memory limit in MiB for `nix` evaluation.
@ -72,7 +72,7 @@ with lib;
'';
nixpkgsInputName = helpers.defaultNullOpts.mkStr' {
default = "nixpkgs";
pluginDefault = "nixpkgs";
example = "nixos";
description = ''
The input name of nixpkgs for NixOS options evaluation.

View file

@ -14,7 +14,7 @@ with lib;
See [the source](https://github.com/nix-community/nixd/blob/main/libnixf/include/nixf/Basic/DiagnosticKinds.inc)
for available diagnostics.
'';
default = [ ];
pluginDefault = [ ];
example = [ "sema-escaping-with" ];
};
};