mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
treewide: switch to port type for nixos modules
This commit is contained in:
parent
5108c96e98
commit
ad866e565d
26 changed files with 36 additions and 36 deletions
|
@ -29,7 +29,7 @@ with lib;
|
|||
listen = mkOption {
|
||||
type = with types; listOf (submodule { options = {
|
||||
addr = mkOption { type = str; description = lib.mdDoc "IP address."; };
|
||||
port = mkOption { type = int; description = lib.mdDoc "Port number."; default = 80; };
|
||||
port = mkOption { type = port; description = lib.mdDoc "Port number."; default = 80; };
|
||||
ssl = mkOption { type = bool; description = lib.mdDoc "Enable SSL."; default = false; };
|
||||
extraParameters = mkOption { type = listOf str; description = lib.mdDoc "Extra parameters of this listen directive."; default = []; example = [ "backlog=1024" "deferred" ]; };
|
||||
}; });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue