diff options
author | tv <tv@krebsco.de> | 2022-12-30 20:13:59 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2022-12-30 20:19:26 +0100 |
commit | 01a49bf237d2777111eb5dd1f6210a26792f062b (patch) | |
tree | 1dd4da6f657587aef4aa41533d77ee3022783996 /tv/2configs | |
parent | 7d1347ef3dfa23df32168f8107e3523f6fe7835f (diff) |
tv retiolum: use networkd
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/retiolum.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tv/2configs/retiolum.nix b/tv/2configs/retiolum.nix index de77de3..1b176e0 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"; |