nixos/ec2-data: sshd.service -> sshd-keygen.service (#444040)

This commit is contained in:
Arian van Putten
2025-09-20 06:59:31 +00:00
committed by GitHub

View File

@@ -23,9 +23,9 @@ with lib;
wantedBy = [ wantedBy = [
"multi-user.target" "multi-user.target"
"sshd.service" "sshd-keygen.service"
]; ];
before = [ "sshd.service" ]; before = [ "sshd-keygen.service" ];
after = [ "fetch-ec2-metadata.service" ]; after = [ "fetch-ec2-metadata.service" ];
path = [ pkgs.iproute2 ]; path = [ pkgs.iproute2 ];
@@ -80,7 +80,7 @@ with lib;
systemd.services.print-host-key = { systemd.services.print-host-key = {
description = "Print SSH Host Key"; description = "Print SSH Host Key";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
after = [ "sshd.service" ]; after = [ "sshd-keygen.service" ];
script = '' script = ''
# Print the host public key on the console so that the user # Print the host public key on the console so that the user
# can obtain it securely by parsing the output of # can obtain it securely by parsing the output of