modules/programs/ssh.nix: simplify expression that generates 'ForwardX11' entry
This commit is contained in:
parent
9c74f9a51b
commit
307644e3b0
@ -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 New Issue
Block a user