How can we create a nested keyword list

You have List.foldr/3 if you want to make it more Elixirish.