nixos-module/defaults: prevent bond0 autocreation

This commit is contained in:
Astro 2021-04-06 22:34:05 +02:00
parent 498970035a
commit e9a2092608
1 changed files with 6 additions and 2 deletions

View File

@ -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;