https://guix.gnu.org/manual/1.5.0/en/html_node/Full_002dSour...
https://stagex.tools/
(I think nixOS also has some work in this area, but I'm not sure how complete it is)