lol

Set up /etc/machine-id before starting systemd

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

(cherry picked from commit c8501a421806c6526a12b2f6537ab38754e9d4ff)

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