pptpd service: improve option descriptions per @bjornfor's suggestion
This commit is contained in:
parent
6a3dcb70bc
commit
8ab188eb16
@ -5,35 +5,35 @@ with lib;
|
|||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
services.pptpd = {
|
services.pptpd = {
|
||||||
enable = mkEnableOption "enable pptpd running on startup";
|
enable = mkEnableOption "Whether pptpd should be run on startup.";
|
||||||
|
|
||||||
serverIp = mkOption {
|
serverIp = mkOption {
|
||||||
type = types.string;
|
type = types.string;
|
||||||
description = "server ip";
|
description = "The server-side IP address.";
|
||||||
default = "10.124.124.1";
|
default = "10.124.124.1";
|
||||||
};
|
};
|
||||||
|
|
||||||
clientIpRange = mkOption {
|
clientIpRange = mkOption {
|
||||||
type = types.string;
|
type = types.string;
|
||||||
description = "client ip range";
|
description = "The range from which client IPs are drawn.";
|
||||||
default = "10.124.142.2-11";
|
default = "10.124.142.2-11";
|
||||||
};
|
};
|
||||||
|
|
||||||
maxClients = mkOption {
|
maxClients = mkOption {
|
||||||
type = types.int;
|
type = types.int;
|
||||||
description = "maximum number of simultaneous connections";
|
description = "The maximum number of simultaneous connections.";
|
||||||
default = 10;
|
default = 10;
|
||||||
};
|
};
|
||||||
|
|
||||||
extraPptpdOptions = mkOption {
|
extraPptpdOptions = mkOption {
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
description = "extra lines for the pptpd configuration files";
|
description = "Adds extra lines to the pptpd configuration file.";
|
||||||
default = "";
|
default = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraPppdOptions = mkOption {
|
extraPppdOptions = mkOption {
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
description = "extra lines for the pppd options files";
|
description = "Adds extra lines to the pppd options file.";
|
||||||
default = "";
|
default = "";
|
||||||
example = ''
|
example = ''
|
||||||
ms-dns 8.8.8.8
|
ms-dns 8.8.8.8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user