mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(nftables): flushRuleset = false
This commit is contained in:
parent
678fee1361
commit
c39a4373ff
1 changed files with 12 additions and 1 deletions
|
|
@ -5,7 +5,7 @@
|
|||
}: let
|
||||
inherit (lib) types;
|
||||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
inherit (lib.attrsets) mapAttrsToList;
|
||||
inherit (lib.strings) optionalString concatStringsSep concatMapStringsSep;
|
||||
inherit (lib.lists) optionals;
|
||||
|
|
@ -161,6 +161,17 @@ in {
|
|||
networking.firewall.enable = false;
|
||||
networking.nftables = {
|
||||
inherit ruleset;
|
||||
flushRuleset = false;
|
||||
extraDeletions = mkMerge [
|
||||
''
|
||||
table inet filter;
|
||||
delete table inet filter;
|
||||
''
|
||||
(mkIf doDocker ''
|
||||
table ip nat;
|
||||
delete table ip nat;
|
||||
'')
|
||||
];
|
||||
};
|
||||
|
||||
virtualisation.docker = mkIf doDocker {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue