From 307644e3b0987cd747fa7869a3f26dfabd642b15 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 29 Oct 2012 17:10:37 +0100 Subject: [PATCH] modules/programs/ssh.nix: simplify expression that generates 'ForwardX11' entry --- modules/programs/ssh.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/programs/ssh.nix b/modules/programs/ssh.nix index 123ef3c02567..5bbe3a000167 100644 --- a/modules/programs/ssh.nix +++ b/modules/programs/ssh.nix @@ -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"; }