summaryrefslogtreecommitdiffstats
path: root/tv/2configs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-02-03 02:40:28 +0100
committertv <tv@krebsco.de>2023-02-03 02:40:28 +0100
commit51561857821558f62003b7a792286a1a7a1a11bf (patch)
tree74dc7202371d6d13459d14a0a5efcdbcc0765594 /tv/2configs
parent3c1a1f0f09e1789ebda529e597c1bb8b7bc7d0c4 (diff)
tv wiregrill: remove extra !
Diffstat (limited to 'tv/2configs')
-rw-r--r--tv/2configs/wiregrill.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/tv/2configs/wiregrill.nix b/tv/2configs/wiregrill.nix
index d28a1ec29..edf65e979 100644
--- a/tv/2configs/wiregrill.nix
+++ b/tv/2configs/wiregrill.nix
@@ -28,8 +28,8 @@ in
systemd.network.networks.wiregrill = {
matchConfig.Name = "wiregrill";
address =
- optional (!isNull cfg.net.ip4) (toCidrNotation cfg.net.ip4) ++
- optional (!isNull cfg.net.ip6) (toCidrNotation cfg.net.ip6);
+ optional (cfg.net.ip4 != null) (toCidrNotation cfg.net.ip4) ++
+ optional (cfg.net.ip6 != null) (toCidrNotation cfg.net.ip6);
};
tv.iptables.extra.filter.INPUT = [
"-p udp --dport ${toString cfg.net.wireguard.port} -j ACCEPT"