nixos/networkmanager: add firewallBackend option

This commit is contained in:
Maxine Aubrey 2021-07-18 18:49:40 +02:00
parent 6b98e950cc
commit aa7608d7de
No known key found for this signature in database
GPG Key ID: F6FE033DFCB899F7

View File

@ -49,6 +49,7 @@ let
rc-manager =
if config.networking.resolvconf.enable then "resolvconf"
else "unmanaged";
firewall-backend = cfg.firewallBackend;
})
(mkSection "keyfile" {
unmanaged-devices =
@ -244,6 +245,15 @@ in {
'';
};
firewallBackend = mkOption {
type = types.enum [ "iptables" "nftables" "none" ];
default = "iptables";
description = ''
Which firewall backend should be used for configuring masquerading with shared mode.
If set to none, NetworkManager doesn't manage the configuration at all.
'';
};
logLevel = mkOption {
type = types.enum [ "OFF" "ERR" "WARN" "INFO" "DEBUG" "TRACE" ];
default = "WARN";