From a79207e73446374529eff5a086ad11e0a2c70a41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 20 Oct 2023 22:29:06 +0200 Subject: [PATCH] hosts/arael: allow missing kernel modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/NixOS/nixpkgs/issues/154163 Signed-off-by: Jakub SokoĊ‚owski --- hosts/arael/sd-image.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/hosts/arael/sd-image.nix b/hosts/arael/sd-image.nix index 1daa80c2..71fd9bac 100644 --- a/hosts/arael/sd-image.nix +++ b/hosts/arael/sd-image.nix @@ -10,7 +10,17 @@ in { ]; # building with emulation - nixpkgs.system = "aarch64-linux"; + nixpkgs = { + system = "aarch64-linux"; + # Fix missing modules + # https://github.com/NixOS/nixpkgs/issues/154163 + nixpkgs.overlays = [ + (final: super: { + makeModulesClosure = x: + super.makeModulesClosure (x // { allowMissing = true; }); + }) + ]; + }; boot = { loader = { @@ -21,8 +31,6 @@ in { kernelPackages = pkgs.callPackage ./kernel_nixos_testing.nix { }; # Disable ZFS since it doesn't support 6.6 kernel yet. zfs.enabled = false; - # Avoid build failures due to missing SATA modules. - initrd.availableKernelModules = [ "ehci_pci" "pcie-rockchip-host" "phy-rockchip-pcie" ]; }; sdImage = {