A process that is carried out at the cellular level which results in the assembly, arrangement of constituent parts, or disassembly of the nucleoid. The nucleoid is the region of a bacterial cell, virion, mitochondrion or chloroplast to which the DNA is confined.