summary refs log tree commit diff
path: root/nixos/modules/services/networking
diff options
context:
space:
mode:
authorTimothy DeHerrera <tim.deh@pm.me>2021-08-11 17:18:48 -0600
committerGitHub <noreply@github.com>2021-08-11 17:18:48 -0600
commit90016afdb1f9be1d6f1bfe56d48ece7fbf808cf8 (patch)
tree391a2f1f970999906157bcb5f98dde48e6d6d0a2 /nixos/modules/services/networking
parent52c2961a1bd8613bbe38c69799d0f2659c2f32ee (diff)
parentcbf6bbac91cf9711e4f279bafdecfc7b06c0d835 (diff)
downloadnixpkgs-90016afdb1f9be1d6f1bfe56d48ece7fbf808cf8.tar
nixpkgs-90016afdb1f9be1d6f1bfe56d48ece7fbf808cf8.tar.gz
nixpkgs-90016afdb1f9be1d6f1bfe56d48ece7fbf808cf8.tar.bz2
nixpkgs-90016afdb1f9be1d6f1bfe56d48ece7fbf808cf8.tar.lz
nixpkgs-90016afdb1f9be1d6f1bfe56d48ece7fbf808cf8.tar.xz
nixpkgs-90016afdb1f9be1d6f1bfe56d48ece7fbf808cf8.tar.zst
nixpkgs-90016afdb1f9be1d6f1bfe56d48ece7fbf808cf8.zip
Merge pull request #133557 from SuperSandro2000/SuperSandro2000-patch-1
nixos/ssh: cleanup X11Forwarding setting
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r--nixos/modules/services/networking/ssh/sshd.nix6
1 files changed, 1 insertions, 5 deletions
diff --git a/nixos/modules/services/networking/ssh/sshd.nix b/nixos/modules/services/networking/ssh/sshd.nix
index 2c96b94ca43..28d7c82f857 100644
--- a/nixos/modules/services/networking/ssh/sshd.nix
+++ b/nixos/modules/services/networking/ssh/sshd.nix
@@ -520,11 +520,7 @@ in
             XAuthLocation ${pkgs.xorg.xauth}/bin/xauth
         ''}
 
-        ${if cfg.forwardX11 then ''
-          X11Forwarding yes
-        '' else ''
-          X11Forwarding no
-        ''}
+        X11Forwarding ${if cfg.forwardX11 then "yes" else "no"}
 
         ${optionalString cfg.allowSFTP ''
           Subsystem sftp ${cfg.sftpServerExecutable} ${concatStringsSep " " cfg.sftpFlags}