Remove kernel module bloat #22

Merged
sb10q merged 1 commits from fsagbuya/nix-servo:kernel-config into master 2024-01-17 18:07:54 +08:00
Showing only changes of commit e94262db53 - Show all commits

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;