summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-10-30 22:47:57 +0100
committertv <tv@krebsco.de>2018-10-30 22:47:57 +0100
commit550f8fce2571537b23588b41e363c27a6cd46c0e (patch)
treeb2016871db1e37c41ff7ad00be33956a91961e26 /krebs/3modules
parent212bc39249f9792cbedf2e9a6b3fed90c52c63e7 (diff)
krebs.tinc: add tincUpExtra
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/tinc.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/krebs/3modules/tinc.nix b/krebs/3modules/tinc.nix
index b032f3148..ecd449b09 100644
--- a/krebs/3modules/tinc.nix
+++ b/krebs/3modules/tinc.nix
@@ -75,6 +75,7 @@ let
${iproute}/sbin/ip -6 addr add ${net.ip6.addr} dev ${netname}
${iproute}/sbin/ip -6 route add ${net.ip6.prefix} dev ${netname}
''}
+ ${tinc.config.tincUpExtra}
'';
description = ''
tinc-up script to be used. Defaults to setting the
@@ -83,6 +84,11 @@ let
'';
};
+ tincUpExtra = mkOption {
+ type = types.str;
+ default = "";
+ };
+
tincPackage = mkOption {
type = types.package;
default = pkgs.tinc;