2009-05-28 00:59:14 +01:00
|
|
|
# Global configuration for the SSH client.
|
|
|
|
|
|
|
|
{config, pkgs, ...}:
|
|
|
|
|
|
|
|
{
|
|
|
|
environment.etc =
|
|
|
|
[ { # SSH configuration. Slight duplication of the sshd_config
|
|
|
|
# generation in the sshd service.
|
|
|
|
source = pkgs.writeText "ssh_config" ''
|
2010-03-11 17:02:53 +00:00
|
|
|
${if config.services.openssh.forwardX11 then ''
|
2009-05-28 00:59:14 +01:00
|
|
|
ForwardX11 yes
|
|
|
|
XAuthLocation ${pkgs.xorg.xauth}/bin/xauth
|
|
|
|
'' else ''
|
|
|
|
ForwardX11 no
|
|
|
|
''}
|
|
|
|
'';
|
|
|
|
target = "ssh/ssh_config";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|