Blacklist loading unnecessary kernel modules on boot
diff --git a/modules/boot.nix b/modules/boot.nix
index 1e06e86..07981e5 100644
--- a/modules/boot.nix
+++ b/modules/boot.nix
@@ -1,11 +1,33 @@
-{
+{ pkgs, options, lib, ... }: {
config = {
- boot.loader = {
- systemd-boot = {
- enable = true;
- editor = false;
+ boot = {
+ loader = {
+ systemd-boot = {
+ enable = true;
+ editor = false;
+ };
+ efi.canTouchEfiVariables = true;
};
- efi.canTouchEfiVariables = true;
+ kernelPackages = pkgs.linuxPackages_zen;
+ blacklistedKernelModules = [
+ "bridge"
+ "loop"
+ "macvlan"
+ "msr"
+ "nf_nat_ftp"
+ "razercore"
+ "razerfirefly"
+ "razerkbd"
+ "razerkraken"
+ "razermouse"
+ "razermug"
+ "tap"
+ "tun"
+ "uinput"
+ "veth"
+ ];
};
};
+
+ traces = [ "config.boot.kernelModules" "config.boot.loader.systemd-boot.editor" ];
}