Those are all classes I think I'd find very interesting. Recently I've tried to naively write my own game engine and OS and failed pretty miserably.
For writing your own OS, I definitely recommend looking at https://www.nand2tetris.org/course it gives you a holistic view of a computer and it's operating system at every level of detail.