nixos/firewall-iptables: ensure correct ordering w.r.t. shutdown.target

This commit is contained in:
Philip Taron 2023-11-30 15:07:03 -08:00
parent a7a5b2eca1
commit 5ab8a128de
No known key found for this signature in database

View File

@ -308,8 +308,9 @@ in
description = "Firewall";
wantedBy = [ "sysinit.target" ];
wants = [ "network-pre.target" ];
before = [ "network-pre.target" ];
after = [ "systemd-modules-load.service" ];
before = [ "network-pre.target" "shutdown.target" ];
conflicts = [ "shutdown.target" ];
path = [ cfg.package ] ++ cfg.extraPackages;