diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-10-13 00:02:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 00:02:00 +0000 |
commit | e69f5a133fb4dc6dab03549db2f3c020602b854a (patch) | |
tree | 2beb3ef6cf7d8bfbd7017f8af2577003b16325df /nixos/modules | |
parent | 12dd9090127fb08247fd7379182b8b047f3a6320 (diff) | |
parent | 87ef3e2688883e03eabf7cd9f096742f445a50fd (diff) | |
download | nixpkgs-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')
-rw-r--r-- | nixos/modules/services/networking/ssh/sshd.nix | 2 |
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 ""} \ |