summaryrefslogtreecommitdiffstats
path: root/krebs/4lib
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-07-28 10:55:34 +0200
committermakefu <github@syntax-fehler.de>2016-07-28 13:18:51 +0200
commit8c465870fc94d8544a164e547f174fd0bb9d8661 (patch)
treec15fc49cc43c22c66b78b1032600830faa066e1e /krebs/4lib
parent15944dc2c1b3310f27f096e8a32183fa2e2abb3f (diff)
retiolum: support nets.<net>.tinc.port
Diffstat (limited to 'krebs/4lib')
-rw-r--r--krebs/4lib/types.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/krebs/4lib/types.nix b/krebs/4lib/types.nix
index 8906eff4a..d057cef1d 100644
--- a/krebs/4lib/types.nix
+++ b/krebs/4lib/types.nix
@@ -130,7 +130,7 @@ types // rec {
type = str;
default = concatStringsSep "\n" (
(optionals (net.via != null)
- (map (a: "Address = ${a}") net.via.addrs))
+ (map (a: "Address = ${a} ${toString config.port}") net.via.addrs))
++
(map (a: "Subnet = ${a}") net.addrs)
++
@@ -140,6 +140,11 @@ types // rec {
pubkey = mkOption {
type = tinc-pubkey;
};
+ port = mkOption {
+ type = int;
+ description = "tinc port to use to connect to host";
+ default = 655;
+ };
};
}));
default = null;