mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +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 ''
|
||||
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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue