Skip to content

Commit

Permalink
Merge pull request #1407 from eyJhb/mkpackageoptionmd
Browse files Browse the repository at this point in the history
fix: removed use of deprecated lib functions
  • Loading branch information
domenkozar authored Aug 31, 2024
2 parents 1e4ef61 + e5bfded commit 3ec083c
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/modules/integrations/aws-vault.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ in

profile = lib.mkOption {
type = lib.types.str;
description = lib.mdDoc ''
description = ''
The profile name passed to `aws-vault exec`.
'';
};
Expand Down
10 changes: 5 additions & 5 deletions src/modules/integrations/devcontainer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,39 @@ in
options.image = lib.mkOption {
type = lib.types.str;
default = "ghcr.io/cachix/devenv:latest";
description = lib.mdDoc ''
description = ''
The name of an image in a container registry.
'';
};

options.overrideCommand = lib.mkOption {
type = lib.types.anything;
default = false;
description = lib.mdDoc ''
description = ''
Override the default command.
'';
};

options.updateContentCommand = lib.mkOption {
type = lib.types.anything;
default = "devenv test";
description = lib.mdDoc ''
description = ''
Command to run after container creation.
'';
};

options.customizations.vscode.extensions = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ "mkhl.direnv" ];
description = lib.mdDoc ''
description = ''
List of preinstalled VSCode extensions.
'';
};
};

default = { };

description = lib.mdDoc ''
description = ''
Devcontainer settings.
'';
};
Expand Down
4 changes: 2 additions & 2 deletions src/modules/services/couchdb.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ in
options.chttpd.bind_address = lib.mkOption {
type = lib.types.str;
default = "127.0.0.1";
description = lib.mdDoc ''
description = ''
Defines the IP address by which CouchDB will be accessible.
'';
};

options.chttpd.port = lib.mkOption {
type = lib.types.port;
default = 5984;
description = lib.mdDoc ''
description = ''
Defined the port number to listen.
'';
};
Expand Down
2 changes: 1 addition & 1 deletion src/modules/services/nginx.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ in
default = "${pkgs.mailcap}/etc/nginx/mime.types";
defaultText = lib.literalExpression "\${pkgs.mailcap}/etc/nginx/mime.types";
example = lib.literalExpression "\${pkgs.nginx}/conf/mime.types";
description = lib.mdDoc ''
description = ''
Default MIME types for NGINX, as MIME types definitions from NGINX are very incomplete,
we use by default the ones bundled in the mailcap package, used by most of the other
Linux distributions.
Expand Down
18 changes: 9 additions & 9 deletions src/modules/services/opensearch.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ let
in
{
options.services.opensearch = {
enable = mkEnableOption (lib.mdDoc "OpenSearch");
enable = mkEnableOption "OpenSearch";

package = lib.mkPackageOptionMD pkgs "OpenSearch" {
package = lib.mkPackageOption pkgs "OpenSearch" {
default = [ "opensearch" ];
};

Expand All @@ -71,53 +71,53 @@ in
options."network.host" = lib.mkOption {
type = lib.types.str;
default = "127.0.0.1";
description = lib.mdDoc ''
description = ''
Which port this service should listen on.
'';
};

options."cluster.name" = lib.mkOption {
type = lib.types.str;
default = "opensearch";
description = lib.mdDoc ''
description = ''
The name of the cluster.
'';
};

options."discovery.type" = lib.mkOption {
type = lib.types.str;
default = "single-node";
description = lib.mdDoc ''
description = ''
The type of discovery to use.
'';
};

options."http.port" = lib.mkOption {
type = lib.types.port;
default = 9200;
description = lib.mdDoc ''
description = ''
The port to listen on for HTTP traffic.
'';
};

options."transport.port" = lib.mkOption {
type = lib.types.port;
default = 9300;
description = lib.mdDoc ''
description = ''
The port to listen on for transport traffic.
'';
};
};

default = { };

description = lib.mdDoc ''
description = ''
OpenSearch configuration.
'';
};

logging = lib.mkOption {
description = lib.mdDoc "OpenSearch logging configuration.";
description = "OpenSearch logging configuration.";

default = ''
logger.action.name = org.opensearch.action
Expand Down
2 changes: 1 addition & 1 deletion src/modules/services/varnish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ in
type = types.listOf types.package;
default = [ ];
example = literalExpression "[ pkgs.varnish73Packages.modules ]";
description = lib.mdDoc ''
description = ''
Varnish modules (except 'std').
'';
};
Expand Down

0 comments on commit 3ec083c

Please sign in to comment.