nixos/make-ext4-fs: Use closureInfo
exportReferencesGraph is deprecated and doesn't have the generated
initial Nix database contain the SHA256 of the contents of the store
paths, which breaks various things under Nix 2.0.
(cherry picked from commit 487be791d783c706369a1a0740e03a0bb60d8f1f)
authored by Tuomas Tynkkynen and committed by Tuomas Tynkkynen c5575c46 17fb44e2