about summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-04-03 14:19:18 -0500
committerWilliam A. Kennington III <william@wkennington.com>2014-04-03 14:28:45 -0500
commit6c6d7dc11db0bf645c1799abd32af2be9094ee0b (patch)
tree8f9d650de3748c5b65a78d4fb7709a71a661f3c9 /nixos/modules/programs
parent6e086caa8aca6c5d90bc32536efd705a674ecd10 (diff)
downloadnixlib-6c6d7dc11db0bf645c1799abd32af2be9094ee0b.tar
nixlib-6c6d7dc11db0bf645c1799abd32af2be9094ee0b.tar.gz
nixlib-6c6d7dc11db0bf645c1799abd32af2be9094ee0b.tar.bz2
nixlib-6c6d7dc11db0bf645c1799abd32af2be9094ee0b.tar.lz
nixlib-6c6d7dc11db0bf645c1799abd32af2be9094ee0b.tar.xz
nixlib-6c6d7dc11db0bf645c1799abd32af2be9094ee0b.tar.zst
nixlib-6c6d7dc11db0bf645c1799abd32af2be9094ee0b.zip
ssh: Don't set xauth if not running xserver
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/ssh.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/programs/ssh.nix b/nixos/modules/programs/ssh.nix
index a66679dff90d..89333533465e 100644
--- a/nixos/modules/programs/ssh.nix
+++ b/nixos/modules/programs/ssh.nix
@@ -31,7 +31,7 @@ in
 
       setXAuthLocation = mkOption {
         type = types.bool;
-        default = true;
+        default = config.services.xserver.enable;
         description = ''
           Whether to set the path to <command>xauth</command> for X11-forwarded connections.
           This causes a dependency on X11 packages.