Why not just take one of the existing Nuka "vending machines" meshes with the little door and add it to settlements as "Working Nuka Cola Vendor" and give it a script where you give it 100 Pre-War Money (due to pre-war inflation - remember how much comics and gas cost) and it produces a Nuka Cola? Nuka Cola limited only by how much Pre-War Money you can spend. You could actually do this for all flavors, even. Immersive and, really, probably a very simple script. Well what you are saying already exists. There are 3-4 MODs which does exactly that.