k 4 types: tinc.extraConfig

This commit is contained in:
makefu 2016-07-28 13:02:41 +02:00
parent 64f0e74699
commit de10a917de
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225

View file

@ -134,12 +134,19 @@ types // rec {
++
(map (a: "Subnet = ${a}") net.addrs)
++
[config.extraConfig]
++
[config.pubkey]
);
};
pubkey = mkOption {
type = tinc-pubkey;
};
extraConfig = mkOption {
description = "Extra Configuration to be appended to the hosts file";
default = "";
type = string;
};
port = mkOption {
type = int;
description = "tinc port to use to connect to host";