···2324 wantedBy = [
25 "multi-user.target"
26- "sshd.service"
27 ];
28- before = [ "sshd.service" ];
29 after = [ "fetch-ec2-metadata.service" ];
3031 path = [ pkgs.iproute2 ];
···80 systemd.services.print-host-key = {
81 description = "Print SSH Host Key";
82 wantedBy = [ "multi-user.target" ];
83- after = [ "sshd.service" ];
84 script = ''
85 # Print the host public key on the console so that the user
86 # can obtain it securely by parsing the output of
···2324 wantedBy = [
25 "multi-user.target"
26+ "sshd-keygen.service"
27 ];
28+ before = [ "sshd-keygen.service" ];
29 after = [ "fetch-ec2-metadata.service" ];
3031 path = [ pkgs.iproute2 ];
···80 systemd.services.print-host-key = {
81 description = "Print SSH Host Key";
82 wantedBy = [ "multi-user.target" ];
83+ after = [ "sshd-keygen.service" ];
84 script = ''
85 # Print the host public key on the console so that the user
86 # can obtain it securely by parsing the output of