Specifically this line does not apply to every buffer:
(face-remap-set-base 'header-line 'nano-modeline--empty-face)
Because of that, any buffer that does not have an explicit hook to establish a modeline format will use header-line as the basis, rather than default.