summaryrefslogtreecommitdiff
path: root/config/networking/services/igmpproxy.nix
diff options
context:
space:
mode:
Diffstat (limited to 'config/networking/services/igmpproxy.nix')
-rw-r--r--config/networking/services/igmpproxy.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/config/networking/services/igmpproxy.nix b/config/networking/services/igmpproxy.nix
index 6bfb43b..b7a25da 100644
--- a/config/networking/services/igmpproxy.nix
+++ b/config/networking/services/igmpproxy.nix
@@ -2,8 +2,7 @@
let
nets = config.personal.networking.networks;
- nets-dependencies =
- builtins.map (subnet: "${subnet.interface}-netdev.service")
+ netdevServices = builtins.map (subnet: "${subnet.interface}-netdev.service")
(with nets; [ wan iot ]);
conf = pkgs.writeText "igmpproxy.conf" ''
phyint ${nets.wan.interface} upstream
@@ -14,8 +13,8 @@ in {
systemd.services.igmpproxy = {
description = "Multicast router utilizing IGMP forwarding";
wantedBy = [ "multi-user.target" ];
- after = [ "network.target" ] ++ nets-dependencies;
- requires = nets-dependencies;
+ after = [ "kea-dhcp4-server.service" ] ++ netdevServices;
+ bindsTo = netdevServices;
path = [ pkgs.igmpproxy ];
script = "igmpproxy -v -n ${conf}";
};