diff options
author | makefu <github@syntax-fehler.de> | 2016-07-28 10:55:34 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-07-28 13:18:51 +0200 |
commit | 8c465870fc94d8544a164e547f174fd0bb9d8661 (patch) | |
tree | c15fc49cc43c22c66b78b1032600830faa066e1e /krebs/3modules/retiolum.nix | |
parent | 15944dc2c1b3310f27f096e8a32183fa2e2abb3f (diff) |
retiolum: support nets.<net>.tinc.port
Diffstat (limited to 'krebs/3modules/retiolum.nix')
-rw-r--r-- | krebs/3modules/retiolum.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/krebs/3modules/retiolum.nix b/krebs/3modules/retiolum.nix index 18e0dd65a..8e91ee6e1 100644 --- a/krebs/3modules/retiolum.nix +++ b/krebs/3modules/retiolum.nix @@ -132,8 +132,9 @@ let routeable IPv4 or IPv6 address. In stockholm this can be done by configuring: - krebs.hosts.${connect-host}.nets.${netname?"retiolum"}.via.addrs4 = - [ "${external-ip} ${external-port}" ] + krebs.hosts.${connect-host}.nets.${netname?"retiolum"}.via.ip4.addr = + "${external-ip} ${external-port}" + krebs.hosts.${connect-host}.nets.${netname?"retiolum"}.tinc.port = 1655; ''; }; @@ -176,6 +177,7 @@ let Interface = ${netname} ${concatStrings (map (c: "ConnectTo = ${c}\n") cfg.connectTo)} PrivateKeyFile = ${cfg.privkey.path} + Port = ${toString cfg.host.nets.${cfg.netname}.tinc.port} ${cfg.extraConfig} ''; "tinc-up" = pkgs.writeDash "${netname}-tinc-up" '' |