about summary refs log tree commit diff
path: root/common.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-03-09 12:56:39 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-03-09 12:56:39 +0100
commit772d403cdaf0f4e8814b7d0de447dcfcd1a01148 (patch)
tree99ab6b3d6ee9cc627e01fe18bf530731b546b956 /common.nix
parent31052edc052939a7e91fb5f19e3fb2d97bc873f2 (diff)
common: Use 60s ServerAliveInterval for OpenSSH.
Especially while being in an environment with unstable connectivity, it
helps a lot to prevent SSH sessions from being dropped.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'common.nix')
-rw-r--r--common.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/common.nix b/common.nix
index baa65336..111b5c6c 100644
--- a/common.nix
+++ b/common.nix
@@ -27,7 +27,11 @@
   networking.useNetworkd = true;
 
   i18n.consoleKeyMap = "dvorak";
+
   programs.ssh.startAgent = false;
+  programs.ssh.extraConfig = ''
+    ServerAliveInterval 60
+  '';
 
   services.nixosManual.showManual = false;