summaryrefslogtreecommitdiffstats
path: root/tv/2configs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-12-30 20:13:59 +0100
committertv <tv@krebsco.de>2022-12-30 20:19:26 +0100
commit63090019f62960b3b07a230c129ae6d9c5d31a08 (patch)
treecd90617ae300c07813c502448de8de4c0c8e3f7e /tv/2configs
parent4adca5a98417c089e36d27f5a33c454d3d4ff3d8 (diff)
tv retiolum: use networkd
Diffstat (limited to 'tv/2configs')
-rw-r--r--tv/2configs/retiolum.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/tv/2configs/retiolum.nix b/tv/2configs/retiolum.nix
index de77de38..1b176e0b 100644
--- a/tv/2configs/retiolum.nix
+++ b/tv/2configs/retiolum.nix
@@ -11,6 +11,16 @@ with import ./lib;
LocalDiscovery = yes
'';
tincPackage = pkgs.tinc_pre;
+ tincUp = lib.mkIf config.systemd.network.enable "";
+ };
+ systemd.network.networks.retiolum = {
+ matchConfig.Name = "retiolum";
+ address = let
+ inherit (config.krebs.build.host.nets.retiolum) ip4 ip6;
+ in [
+ "${ip4.addr}/${toString ip4.prefixLength}"
+ "${ip6.addr}/${toString ip6.prefixLength}"
+ ];
};
tv.iptables.input-internet-accept-tcp = singleton "tinc";
tv.iptables.input-internet-accept-udp = singleton "tinc";