···
21
-
type = types.loaOf types.optionSet;
23
-
Defines the tinc networks which will be started.
24
-
Each network invokes a different daemon.
21
+
type = with types; loaOf (submodule {
28
-
extraConfig = mkOption {
32
-
Extra lines to add to the tinc service configuration file.
24
+
extraConfig = mkOption {
28
+
Extra lines to add to the tinc service configuration file.
38
-
type = types.nullOr types.str;
40
-
The name of the node which is used as an identifier when communicating
41
-
with the remote nodes in the mesh. If null then the hostname of the system
34
+
type = types.nullOr types.str;
36
+
The name of the node which is used as an identifier when communicating
37
+
with the remote nodes in the mesh. If null then the hostname of the system
46
-
ed25519PrivateKeyFile = mkOption {
48
-
type = types.nullOr types.path;
50
-
Path of the private ed25519 keyfile.
42
+
ed25519PrivateKeyFile = mkOption {
44
+
type = types.nullOr types.path;
46
+
Path of the private ed25519 keyfile.
54
-
debugLevel = mkOption {
56
-
type = types.addCheck types.int (l: l >= 0 && l <= 5);
58
-
The amount of debugging information to add to the log. 0 means little
59
-
logging while 5 is the most logging. <command>man tincd</command> for
50
+
debugLevel = mkOption {
52
+
type = types.addCheck types.int (l: l >= 0 && l <= 5);
54
+
The amount of debugging information to add to the log. 0 means little
55
+
logging while 5 is the most logging. <command>man tincd</command> for
66
-
type = types.loaOf types.lines;
68
-
The name of the host in the network as well as the configuration for that host.
69
-
This name should only contain alphanumerics and underscores.
62
+
type = types.loaOf types.lines;
64
+
The name of the host in the network as well as the configuration for that host.
65
+
This name should only contain alphanumerics and underscores.
73
-
interfaceType = mkOption {
75
-
type = types.addCheck types.str (n: n == "tun" || n == "tap");
77
-
The type of virtual interface used for the network connection
69
+
interfaceType = mkOption {
71
+
type = types.addCheck types.str (n: n == "tun" || n == "tap");
73
+
The type of virtual interface used for the network connection
81
-
listenAddress = mkOption {
83
-
type = types.nullOr types.str;
85
-
The ip adress to bind to.
77
+
listenAddress = mkOption {
79
+
type = types.nullOr types.str;
81
+
The ip adress to bind to.
89
-
package = mkOption {
90
-
type = types.package;
91
-
default = pkgs.tinc_pre;
92
-
defaultText = "pkgs.tinc_pre";
94
-
The package to use for the tinc daemon's binary.
85
+
package = mkOption {
86
+
type = types.package;
87
+
default = pkgs.tinc_pre;
88
+
defaultText = "pkgs.tinc_pre";
90
+
The package to use for the tinc daemon's binary.
102
-
Change process root directory to the directory where the config file is located (/etc/tinc/netname/), for added security.
103
-
The chroot is performed after all the initialization is done, after writing pid files and opening network sockets.
98
+
Change process root directory to the directory where the config file is located (/etc/tinc/netname/), for added security.
99
+
The chroot is performed after all the initialization is done, after writing pid files and opening network sockets.
105
-
Note that tinc can't run scripts anymore (such as tinc-down or host-up), unless it is setup to be runnable inside chroot environment.
101
+
Note that tinc can't run scripts anymore (such as tinc-down or host-up), unless it is setup to be runnable inside chroot environment.
108
+
Defines the tinc networks which will be started.
109
+
Each network invokes a different daemon.