tv retiolum: use networkd
This commit is contained in:
parent
4adca5a984
commit
63090019f6
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue