nixos/nftables: set nm's firewallBackend when on

when enabled, switch networkmanager's firewallBackend option to nftables
This commit is contained in:
Maxine Aubrey 2021-07-18 18:50:20 +02:00
parent aa7608d7de
commit ea125a5fd9
No known key found for this signature in database
GPG Key ID: F6FE033DFCB899F7

View File

@ -103,6 +103,7 @@ in
}];
boot.blacklistedKernelModules = [ "ip_tables" ];
environment.systemPackages = [ pkgs.nftables ];
networking.networkmanager.firewallBackend = mkDefault "nftables";
systemd.services.nftables = {
description = "nftables firewall";
before = [ "network-pre.target" ];