mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-06 12:39:54 +03:00
Merge pull request #318185 from tomfitzhenry/initrd-ssh-null-alg
nixos/initrd-ssh: set KexAlgorithms/Ciphers/MACs only if non-null
This commit is contained in:
commit
44b22d8d45
@ -150,9 +150,13 @@ in
|
||||
HostKey ${initrdKeyPath path}
|
||||
'')}
|
||||
|
||||
'' + lib.optionalString (sshdCfg.settings.KexAlgorithms != null) ''
|
||||
KexAlgorithms ${concatStringsSep "," sshdCfg.settings.KexAlgorithms}
|
||||
'' + lib.optionalString (sshdCfg.settings.Ciphers != null) ''
|
||||
Ciphers ${concatStringsSep "," sshdCfg.settings.Ciphers}
|
||||
'' + lib.optionalString (sshdCfg.settings.Macs != null) ''
|
||||
MACs ${concatStringsSep "," sshdCfg.settings.Macs}
|
||||
'' + ''
|
||||
|
||||
LogLevel ${sshdCfg.settings.LogLevel}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user