diff options
author | lassulus <lassulus@lassul.us> | 2022-12-28 20:39:23 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-12-28 20:39:23 +0100 |
commit | e2ff8598a61a7ebd99e87de888f0d12d096c0b12 (patch) | |
tree | 25752495af9ef98c2c136bd54e53d63ef8e62414 | |
parent | 4ca3c828984c1ebe73fa6145592d1a5293e30ae8 (diff) |
l wiregrill: use networkd
-rw-r--r-- | lass/2configs/wiregrill.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lass/2configs/wiregrill.nix b/lass/2configs/wiregrill.nix index 54257d2c4..ba6358ab7 100644 --- a/lass/2configs/wiregrill.nix +++ b/lass/2configs/wiregrill.nix @@ -23,6 +23,13 @@ in mkIf (hasAttr "wiregrill" config.krebs.build.host.nets) { { precedence = 1000; predicate = "-i wiregrill -o eth0"; target = "ACCEPT"; } { precedence = 1000; predicate = "-o wiregrill -m conntrack --ctstate RELATED,ESTABLISHED"; target = "ACCEPT"; } ]; + systemd.network.networks.wiregrill = { + matchConfig.Name = "wiregrill"; + address = + (optional (!isNull self.ip4) "${self.ip4.addr}/16") ++ + (optional (!isNull self.ip6) "${self.ip6.addr}/48") + ; + }; networking.wireguard.interfaces.wiregrill = { ips = |