* iptables: fix ordering

refs nixpkgs fb46df8a9a4102e265f4b14af48a5df90d5b06c3
This commit is contained in:
tv 2017-03-14 20:57:21 +01:00
parent 7a293af6db
commit df2ee4e726
2 changed files with 8 additions and 4 deletions

View File

@ -68,8 +68,8 @@ let
networking.firewall.enable = false;
systemd.services.krebs-iptables = {
description = "krebs-iptables";
wantedBy = [ "network-pre.target" ];
wantedBy = [ "sysinit.target" ];
wants = [ "network-pre.target" ];
before = [ "network-pre.target" ];
after = [ "systemd-modules-load.service" ];
@ -85,6 +85,8 @@ let
Restart = "always";
ExecStart = startScript;
};
unitConfig.DefaultDependencies = false;
};
};

View File

@ -57,8 +57,8 @@ let {
networking.firewall.enable = false;
systemd.services.tv-iptables = {
description = "tv-iptables";
wantedBy = [ "network-pre.target" ];
wantedBy = [ "sysinit.target" ];
wants = [ "network-pre.target" ];
before = [ "network-pre.target" ];
after = [ "systemd-modules-load.service" ];
@ -79,6 +79,8 @@ let {
ip6tables-restore < ${rules 6}
'';
};
unitConfig.DefaultDependencies = false;
};
};