mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 10:34:16 +00:00
6afb255d97
these changes were generated with nixq 0.0.2, by running nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix two mentions of the mdDoc function remain in nixos/, both of which are inside of comments. Since lib.mdDoc is already defined as just id, this commit is a no-op as far as Nix (and the built manual) is concerned.
37 lines
872 B
Nix
37 lines
872 B
Nix
{ lib, ... }:
|
|
{ options = {
|
|
server = lib.mkOption {
|
|
type =
|
|
lib.types.either
|
|
(lib.types.submodule (import ./server-options.nix))
|
|
(lib.types.path);
|
|
example = {
|
|
host = "127.0.0.1";
|
|
port = 8888;
|
|
};
|
|
default = {
|
|
host = "127.0.0.1";
|
|
port = 80;
|
|
};
|
|
description = ''
|
|
Frontend server interface binding specification as either a
|
|
host:port pair or a unix domain docket.
|
|
|
|
NB: a host of "*" listens on all interfaces and includes IPv6
|
|
addresses.
|
|
'';
|
|
};
|
|
|
|
params = lib.mkOption {
|
|
type = lib.types.nullOr (lib.types.submodule (import ./frontend-params-submodule.nix));
|
|
example = {
|
|
tls = "tls";
|
|
};
|
|
default = null;
|
|
description = ''
|
|
Parameters to configure a backend.
|
|
'';
|
|
};
|
|
};
|
|
}
|