git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #171490 from danielfullmer/fix-ssh-hostkey
commitb59d447a161632567d1b6a94af0649a07bdcbd83 authorSandro <sandro.jaeckel@gmail.com> dateWed 4 May 2022, 14:29 (5 years ago) parentcf98cc1ad38a2a
1 file changed+1
nixos/modules/services/networking/ssh/sshd.nix+1
nixos/modules/services/networking/ssh/sshd.nix+1
@@ -441,6 +441,7 @@ in
441441
442442 ${flip concatMapStrings cfg.hostKeys (k: ''
443443 if ! [ -s "${k.path}" ]; then
444+ rm -f "${k.path}"
444445 ssh-keygen \
445446 -t "${k.type}" \
446447 ${if k ? bits then "-b ${toString k.bits}" else ""} \