mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
Fix bug in notnftables
where dontFlush
wasn't being respected
Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
parent
52d2b22844
commit
6175d518ce
|
@ -10,7 +10,8 @@ let
|
|||
optionalAttrs
|
||||
listToAttrs
|
||||
optional
|
||||
filter;
|
||||
filter
|
||||
optionalString;
|
||||
cfg = config.networking.notnft;
|
||||
jsonFormat = (pkgs.formats.json {});
|
||||
in
|
||||
|
@ -115,7 +116,7 @@ in
|
|||
RemainAfterExit = true;
|
||||
ExecStart = startScript;
|
||||
ExecReload = startScript;
|
||||
ExecStop = "${pkgs.nftables}/bin/nft flush ruleset";
|
||||
ExecStop = optionalString cfg.flush "${pkgs.nftables}/bin/nft flush ruleset";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue