Unverified Commit ca9040f2 authored by Jared Baur's avatar Jared Baur
Browse files

nixos/kernel: obtain in-tree kernel modules via the modules output

parent 71a314ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -387,7 +387,7 @@ in
    (mkIf config.boot.kernel.enable {
      system.build = { inherit kernel; };

      system.modulesTree = [ kernel ] ++ config.boot.extraModulePackages;
      system.modulesTree = [ (lib.getOutput "modules" kernel) ] ++ config.boot.extraModulePackages;

      # Not required for, e.g., containers as they don't have their own kernel or initrd.
      # They boot directly into stage 2.