From e9a209260803c4751ce3da492c8bace9636f7452 Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 6 Apr 2021 22:34:05 +0200 Subject: [PATCH] nixos-module/defaults: prevent bond0 autocreation --- nix/nixos-module/defaults.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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;