about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorPhilip Taron <philip.taron@gmail.com>2023-11-30 15:07:03 -0800
committerPhilip Taron <philip.taron@gmail.com>2023-11-30 15:07:03 -0800
commit5ab8a128deb592b1c509b45e9a8b68442f9b262e (patch)
tree39eaaeb3ca40ff0637f912ae63cf2d3281696597 /nixos/modules
parenta7a5b2eca1054166a60ac366d90da701e57b9138 (diff)
nixos/firewall-iptables: ensure correct ordering w.r.t. shutdown.target
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/networking/firewall-iptables.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/firewall-iptables.nix b/nixos/modules/services/networking/firewall-iptables.nix
index e900868387203..2d11517700086 100644
--- a/nixos/modules/services/networking/firewall-iptables.nix
+++ b/nixos/modules/services/networking/firewall-iptables.nix
@@ -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;