Set up /etc/machine-id before starting systemd

Otherwise, systemd will try to populate /etc, which we don't want.

+4
+4
nixos/modules/system/boot/systemd.nix
··· 647 647 # groups, in addition to those in the systemd-journal group. 648 648 # Users can always read their own journals. 649 649 ${pkgs.acl}/bin/setfacl -nm g:wheel:rx,d:g:wheel:rx,g:adm:rx,d:g:adm:rx /var/log/journal || true 650 + 651 + if ! [ -e /etc/machine-id ]; then 652 + ${systemd}/bin/systemd-machine-id-setup 653 + fi 650 654 ''; 651 655 652 656 users.extraUsers.systemd-network.uid = config.ids.uids.systemd-network;