Preheat the oven to 400°F (200°C).
Put the pumpkin and onion in a roasting pan with the olive oil and water. Toss, season with salt and pepper and roast for about 25 minutes, until golden and tender enough to pierce with a fork.
Melt the butter in a saucepan. Whisk in the flour and cook over medium heat for 1 to 2 minutes. Gradually whisk in the milk and simmer for about 5 minutes, whisking often, until thickened.
Stir in the ricotta and nutmeg and season with salt and pepper.
Put some roasted pumpkin and onion in a baking dish, add some sauce and cover with oven-ready noodles. Repeat the layers, reserving enough sauce to cover the final noodle layer all the way to the edges. Sprinkle with the grated cheese.
Bake at 400°F (200°C) for about 30 minutes, until the pasta is tender, the top is golden and the center reaches 165°F (74°C).