Skip to content

Commit

Permalink
hosts/arael: allow missing kernel modules
Browse files Browse the repository at this point in the history
NixOS/nixpkgs#154163

Signed-off-by: Jakub Sokołowski <[email protected]>
  • Loading branch information
jakubgs committed Oct 20, 2023
1 parent d726687 commit a79207e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions hosts/arael/sd-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand Down

0 comments on commit a79207e

Please sign in to comment.