summaryrefslogtreecommitdiffstats
path: root/tv/2configs
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-02-03 13:28:15 +0100
committerlassulus <git@lassul.us>2023-02-03 13:28:15 +0100
commitd299a49bfea376d4d6969d00e44056363f7af0ae (patch)
tree9af622a6a6c324452592c2672ff145b77bede3c0 /tv/2configs
parentb711133bea18ea1ed3ad441b2d80ccd5ba7dfd22 (diff)
parent880eb5310d3ddf8da4907aadb7ecdf45f2f892d3 (diff)
Merge remote-tracking branch 'ni/master'
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 d28a1ec..edf65e9 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"