Merge pull request #99340 from andir/nftables-fix-iptables-conflict-errormsg

nftables: Warn about correct firewall setting
This commit is contained in:
Andreas Rammhold 2020-10-02 11:13:26 +02:00 committed by GitHub
commit 66c3ba64b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,7 +99,7 @@ in
config = mkIf cfg.enable {
assertions = [{
assertion = config.networking.firewall.enable == false;
message = "You can not use nftables with services.networking.firewall.";
message = "You can not use nftables and iptables at the same time. networking.firewall.enable must be set to false.";
}];
boot.blacklistedKernelModules = [ "ip_tables" ];
environment.systemPackages = [ pkgs.nftables ];