When running nixos-infect on Oracle Linux 8 (on Oracle Cloud, with both AMD and ARM), I found that sshd refused to start when NixOS booted, because the private ssh host keys were 640 instead of 600 (i.e. -rw-r----- instead of -rw-------.
With this patch, I was able to run nixos-infect on Oracle Linux, and connect via ssh after rebooting.
When running nixos-infect on Oracle Linux 8 (on Oracle Cloud, with both AMD and ARM), I found that sshd refused to start when NixOS booted, because the private ssh host keys were 640 instead of 600 (i.e.
-rw-r-----
instead of-rw-------
.With this patch, I was able to run nixos-infect on Oracle Linux, and connect via ssh after rebooting.