mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #284627 from Trundle/nftables-ordering
nixos/nftables: remove default systemd dependencies
This commit is contained in:
commit
0cf1e24f32
@ -252,8 +252,10 @@ in
|
||||
networking.nftables.flushRuleset = mkDefault (versionOlder config.system.stateVersion "23.11" || (cfg.rulesetFile != null || cfg.ruleset != ""));
|
||||
systemd.services.nftables = {
|
||||
description = "nftables firewall";
|
||||
before = [ "network-pre.target" ];
|
||||
wants = [ "network-pre.target" ];
|
||||
after = [ "sysinit.target" ];
|
||||
before = [ "network-pre.target" "shutdown.target" ];
|
||||
conflicts = [ "shutdown.target" ];
|
||||
wants = [ "network-pre.target" "sysinit.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
reloadIfChanged = true;
|
||||
serviceConfig = let
|
||||
@ -315,6 +317,7 @@ in
|
||||
ExecStop = [ deletionsScriptVar cleanupDeletionsScript ];
|
||||
StateDirectory = "nftables";
|
||||
};
|
||||
unitConfig.DefaultDependencies = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user