summaryrefslogtreecommitdiffstats
path: root/krebs/4lib
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-07-28 13:02:41 +0200
committermakefu <github@syntax-fehler.de>2016-07-28 13:24:36 +0200
commitde10a917de07ef3eb2ba3aed0e97d738975652a9 (patch)
tree80bb576083b3aa50abb8f798a583d06666380827 /krebs/4lib
parent64f0e746992f9ab1395a917f43af09a86add70b6 (diff)
k 4 types: tinc.extraConfig
Diffstat (limited to 'krebs/4lib')
-rw-r--r--krebs/4lib/types.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/krebs/4lib/types.nix b/krebs/4lib/types.nix
index d057cef1d..37d44606b 100644
--- a/krebs/4lib/types.nix
+++ b/krebs/4lib/types.nix
@@ -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";