Isn't that how z/os from IBM works? The API is a SQL api into files I think
The latter has a single level storage system where disks and memory are part of single address space, and a variant of DB2 database is part of core OS thus making it common to use SQL for many things people wouldn't expect.
If an operationg system was built today for tomorrow it would certainly be built on/as a database.