Using modulesClosure ought to work, but `lib.getOutput "modules" kernel` is consistent with how this file was before.