From f9edbdd3fa09f9a88539456e2f3d2f90a0889802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sat, 1 Nov 2025 14:07:00 +0800 Subject: [PATCH] hydrogen: allow missing modules Related to https://github.com/NixOS/nixpkgs/issues/154163#issuecomment-1350599022 --- nix/configurations/hydrogen/nixos/misc.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nix/configurations/hydrogen/nixos/misc.nix b/nix/configurations/hydrogen/nixos/misc.nix index b8537a11..3cb2c3d4 100644 --- a/nix/configurations/hydrogen/nixos/misc.nix +++ b/nix/configurations/hydrogen/nixos/misc.nix @@ -7,4 +7,14 @@ size = 1024; # MB } ]; + + # Related https://github.com/NixOS/nixpkgs/issues/154163#issuecomment-1350599022 + # + # modprobe: FATAL: Module sun4i-drm not found in directory /nix/store/gvvwpdckzcr4iamp1iyrqw3nzb7bg6c4-linux-rpi-6.6.51-stable_20241008-modules/lib/modules/6.6.51 + nixpkgs.overlays = [ + (final: prev: { + makeModulesClosure = x: + prev.makeModulesClosure (x // {allowMissing = true;}); + }) + ]; }