summary refs log tree commit diff
path: root/nixos/modules/services/networking
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-10-13 00:02:00 +0000
committerGitHub <noreply@github.com>2021-10-13 00:02:00 +0000
commite69f5a133fb4dc6dab03549db2f3c020602b854a (patch)
tree2beb3ef6cf7d8bfbd7017f8af2577003b16325df /nixos/modules/services/networking
parent12dd9090127fb08247fd7379182b8b047f3a6320 (diff)
parent87ef3e2688883e03eabf7cd9f096742f445a50fd (diff)
downloadnixpkgs-e69f5a133fb4dc6dab03549db2f3c020602b854a.tar
nixpkgs-e69f5a133fb4dc6dab03549db2f3c020602b854a.tar.gz
nixpkgs-e69f5a133fb4dc6dab03549db2f3c020602b854a.tar.bz2
nixpkgs-e69f5a133fb4dc6dab03549db2f3c020602b854a.tar.lz
nixpkgs-e69f5a133fb4dc6dab03549db2f3c020602b854a.tar.xz
nixpkgs-e69f5a133fb4dc6dab03549db2f3c020602b854a.tar.zst
nixpkgs-e69f5a133fb4dc6dab03549db2f3c020602b854a.zip
Merge staging-next into staging
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r--nixos/modules/services/networking/ssh/sshd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/ssh/sshd.nix b/nixos/modules/services/networking/ssh/sshd.nix
index 192533e52de..004b4f99670 100644
--- a/nixos/modules/services/networking/ssh/sshd.nix
+++ b/nixos/modules/services/networking/ssh/sshd.nix
@@ -439,7 +439,7 @@ in
                 mkdir -m 0755 -p /etc/ssh
 
                 ${flip concatMapStrings cfg.hostKeys (k: ''
-                  if ! [ -f "${k.path}" ]; then
+                  if ! [ -s "${k.path}" ]; then
                       ssh-keygen \
                         -t "${k.type}" \
                         ${if k ? bits then "-b ${toString k.bits}" else ""} \