modules/programs/ssh.nix: simplify expression that generates 'ForwardX11' entry

This commit is contained in:
Peter Simons 2012-10-29 17:10:37 +01:00
parent 9c74f9a51b
commit 307644e3b0

View File

@ -46,11 +46,7 @@ in
${optionalString cfg.setXAuthLocation ''
XAuthLocation ${pkgs.xorg.xauth}/bin/xauth
''}
${if cfg.forwardX11 then ''
ForwardX11 yes
'' else ''
ForwardX11 no
''}
ForwardX11 ${if cfg.forwardX11 then "yes" else "no"}
'';
target = "ssh/ssh_config";
}