From de10a917de07ef3eb2ba3aed0e97d738975652a9 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 28 Jul 2016 13:02:41 +0200 Subject: k 4 types: tinc.extraConfig --- krebs/4lib/types.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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"; -- cgit v1.2.3