2009-05-28 01:59:14 +02: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 18:02:53 +01:00
|
|
|
${if config.services.openssh.forwardX11 then ''
|
2009-05-28 01:59:14 +02:00
|
|
|
ForwardX11 yes
|
|
|
|
XAuthLocation ${pkgs.xorg.xauth}/bin/xauth
|
|
|
|
'' else ''
|
|
|
|
ForwardX11 no
|
|
|
|
''}
|
|
|
|
'';
|
|
|
|
target = "ssh/ssh_config";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|