The majority of my NixOS configuration is written in NixOS agnostic modules so it works pretty well.
I share my NixOS configurations between one bare metal Alpine install as well as an Alpine WSL2 install.