Fun fact: if you have a Steam Deck, Nix (the package manager) is pretty much the only vendor-approved way to safely install extra packages that aren't otherwise available as a flatpak.
Trying to screw with overlayfs to make pacman usable is/was a thing, and it was a very good way to break the OS install despite it having atomic updates.