From c9945550deb3715991bbe7ee82bce84eb36c65cb Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Wed, 5 Dec 2018 00:14:15 +0100 Subject: [PATCH] ssh: realign options (cherry picked from commit 5fe62660aa5facec72d8787da73115ed54ad7545) --- modules/programs/ssh.nix | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/programs/ssh.nix b/modules/programs/ssh.nix index 6423315d..0f88c538 100644 --- a/modules/programs/ssh.nix +++ b/modules/programs/ssh.nix @@ -137,20 +137,20 @@ let matchBlockStr = cf: concatStringsSep "\n" ( ["Host ${cf.host}"] - ++ optional (cf.port != null) " Port ${toString cf.port}" - ++ optional (cf.forwardAgent != null) " ForwardAgent ${yn cf.forwardAgent}" - ++ optional cf.forwardX11 " ForwardX11 yes" - ++ optional cf.forwardX11Trusted " ForwardX11Trusted yes" - ++ optional cf.identitiesOnly " IdentitiesOnly yes" - ++ optional (cf.user != null) " User ${cf.user}" - ++ optional (cf.identityFile != null) " IdentityFile ${cf.identityFile}" - ++ optional (cf.hostname != null) " HostName ${cf.hostname}" - ++ optional (cf.sendEnv != []) " SendEnv ${unwords cf.sendEnv}" + ++ optional (cf.port != null) " Port ${toString cf.port}" + ++ optional (cf.forwardAgent != null) " ForwardAgent ${yn cf.forwardAgent}" + ++ optional cf.forwardX11 " ForwardX11 yes" + ++ optional cf.forwardX11Trusted " ForwardX11Trusted yes" + ++ optional cf.identitiesOnly " IdentitiesOnly yes" + ++ optional (cf.user != null) " User ${cf.user}" + ++ optional (cf.identityFile != null) " IdentityFile ${cf.identityFile}" + ++ optional (cf.hostname != null) " HostName ${cf.hostname}" + ++ optional (cf.sendEnv != []) " SendEnv ${unwords cf.sendEnv}" ++ optional (cf.serverAliveInterval != 0) " ServerAliveInterval ${toString cf.serverAliveInterval}" - ++ optional (cf.compression != null) " Compression ${yn cf.compression}" - ++ optional (!cf.checkHostIP) " CheckHostIP no" - ++ optional (cf.proxyCommand != null) " ProxyCommand ${cf.proxyCommand}" + ++ optional (cf.compression != null) " Compression ${yn cf.compression}" + ++ optional (!cf.checkHostIP) " CheckHostIP no" + ++ optional (cf.proxyCommand != null) " ProxyCommand ${cf.proxyCommand}" ++ mapAttrsToList (n: v: " ${n} ${v}") cf.extraOptions );