diff options
author | Maxine Aubrey <maxeaubrey@gmail.com> | 2021-07-18 18:50:20 +0200 |
---|---|---|
committer | Maxine Aubrey <maxeaubrey@gmail.com> | 2021-07-21 19:27:30 +0200 |
commit | ea125a5fd91af24c4405725c9c048f788bd70d12 (patch) | |
tree | 9cd5407090f084a8adbfcbb996af383061a31784 /nixos/modules | |
parent | aa7608d7de402ad19919623797654e03ed907523 (diff) |
nixos/nftables: set nm's firewallBackend when on
when enabled, switch networkmanager's firewallBackend option to nftables
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/networking/nftables.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/nftables.nix b/nixos/modules/services/networking/nftables.nix index cb75142965eae..72f37c32253e5 100644 --- a/nixos/modules/services/networking/nftables.nix +++ b/nixos/modules/services/networking/nftables.nix @@ -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" ]; |