From 63090019f62960b3b07a230c129ae6d9c5d31a08 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 30 Dec 2022 20:13:59 +0100 Subject: tv retiolum: use networkd --- tv/2configs/retiolum.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tv/2configs') 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"; -- cgit v1.2.3