diff --git a/nix/nixos-module/defaults.nix b/nix/nixos-module/defaults.nix index ac4e383..f69fd2a 100644 --- a/nix/nixos-module/defaults.nix +++ b/nix/nixos-module/defaults.nix @@ -1,8 +1,12 @@ { hostName, inputs, pkgs, options, lib, ... }: { - # No server/router runs any untrusted user code - boot.kernelParams = [ "mitigations=off" ]; + boot.kernelParams = [ + # No server/router runs any untrusted user code + "mitigations=off" + # Prevents automatic creation of interface bond0 by the kernel + "bonding.max_bonds=0" + ]; # Includes wireguard boot.kernelPackages = pkgs.linuxPackages_latest;