mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19: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
|
}: let
|
||||||
inherit (lib) types;
|
inherit (lib) types;
|
||||||
inherit (lib.options) mkOption mkEnableOption;
|
inherit (lib.options) mkOption mkEnableOption;
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf mkMerge;
|
||||||
inherit (lib.attrsets) mapAttrsToList;
|
inherit (lib.attrsets) mapAttrsToList;
|
||||||
inherit (lib.strings) optionalString concatStringsSep concatMapStringsSep;
|
inherit (lib.strings) optionalString concatStringsSep concatMapStringsSep;
|
||||||
inherit (lib.lists) optionals;
|
inherit (lib.lists) optionals;
|
||||||
|
|
@ -161,6 +161,17 @@ in {
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
networking.nftables = {
|
networking.nftables = {
|
||||||
inherit ruleset;
|
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 {
|
virtualisation.docker = mkIf doDocker {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue