The oxygen system on a diesel boat of WWII was called "O2 cylinders". They are placed in every compartment, usually hung in the overhead from brackets. The nukes have O2 generators that supply O2 banks. The banks can bleed inboard.
To remove CO2, the crew spread LiOH (lithium hydroxide) out on mattress covers and the chemical absorbed the CO2. Watch it, the stuff got hot when it reacted with CO2. The LiOH canisters were kind of oblong in the old days and after WWII they were round, gray cans. They were hung from brackets in the overhead or from the side of the pressure hull on brackets in every compartment. The torpedo rooms had hundreds of them, probably because these were the spaces where you would congregate in an escape attempt. Torsk has a bunch of these canisters which we found on the Trout. Razorback also has a bunch. I know Pampanito reproduced a bunch of the WWII type.
The nukes now adays use CO2 scrubbers and CO/H2 burners to remove unwanted gas. In an emergency, the bunk curtains are CO2 absorbant.