mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
modules/programs/ssh.nix: simplify expression that generates 'ForwardX11' entry
This commit is contained in:
parent
9c74f9a51b
commit
307644e3b0
1 changed files with 1 additions and 5 deletions
|
@ -46,11 +46,7 @@ in
|
||||||
${optionalString cfg.setXAuthLocation ''
|
${optionalString cfg.setXAuthLocation ''
|
||||||
XAuthLocation ${pkgs.xorg.xauth}/bin/xauth
|
XAuthLocation ${pkgs.xorg.xauth}/bin/xauth
|
||||||
''}
|
''}
|
||||||
${if cfg.forwardX11 then ''
|
ForwardX11 ${if cfg.forwardX11 then "yes" else "no"}
|
||||||
ForwardX11 yes
|
|
||||||
'' else ''
|
|
||||||
ForwardX11 no
|
|
||||||
''}
|
|
||||||
'';
|
'';
|
||||||
target = "ssh/ssh_config";
|
target = "ssh/ssh_config";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue