So in that spirit, try the XinuOS. It has the complete source code for a minimal, clean and practical OS. Search for the book explaining it inside out.
xv6, a re-implementation of Dennis Ritchie's and Ken Thompson's Unix Version 6 (v6) also comes to mind.
And C. Don't forget to sharpen your C skills.
Get knowledge of operating systems ( I like the minix book by tanenbaum ). Learn about Linux internals ( I like linux kernel development by Robert love)
Then, pick bits you’re interested in and jump !
https://www.amazon.com/Linux-Core-Kernel-Commentary-Knowledg...
Understanding the Linux Kernel, Third Edition 3rd Edition
https://www.amazon.com/Understanding-Linux-Kernel-Third-Dani...
https://www.linuxfromscratch.org/
Building a Linux kernel and system with your own specific configuration tweaks may reveal things that the best of books, manuals, courses, etc. might not cover.