remove kernel module bloat

This commit is contained in:
Florian Agbuya 2024-01-17 17:56:38 +08:00
parent 2639192a92
commit e94262db53
1 changed files with 8 additions and 2 deletions

View File

@ -96,10 +96,10 @@ index c61f9d6..fbdf0fd 100644
}; };
} }
diff --git a/zynq_image.nix b/zynq_image.nix diff --git a/zynq_image.nix b/zynq_image.nix
index 3fa23ab..4fa949e 100644 index 3fa23ab..9ea1df3 100644
--- a/zynq_image.nix --- a/zynq_image.nix
+++ b/zynq_image.nix +++ b/zynq_image.nix
@@ -1,66 +1,90 @@ @@ -1,66 +1,96 @@
-{ config, pkgs, ... }: -{ config, pkgs, ... }:
+{ lib, config, pkgs, ... }: +{ lib, config, pkgs, ... }:
@ -126,6 +126,12 @@ index 3fa23ab..4fa949e 100644
+ customKernel = (crosspkgs.linux.override { + customKernel = (crosspkgs.linux.override {
extraConfig = '' extraConfig = ''
OVERLAY_FS y OVERLAY_FS y
+ MEDIA_SUPPORT n
+ FB n
+ DRM n
+ SOUND n
+ SQUASHFS n
+ BACKLIGHT_CLASS_DEVICE n
''; '';
- }; - };
- customKernelPackages = pkgs.linuxPackagesFor customKernel; - customKernelPackages = pkgs.linuxPackagesFor customKernel;