From 3f66dee8f1a92585f9a3c2d7d5409198064ed306 Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Fri, 18 Oct 2024 16:06:31 +0200 Subject: [PATCH] nix-daemon: set MaxSessions to 100 This makes more simultaneous remote builds possible when using a multiplexed SSH connection. --- modules/nix-daemon.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/nix-daemon.nix b/modules/nix-daemon.nix index 499fdac..e7ad1cc 100644 --- a/modules/nix-daemon.nix +++ b/modules/nix-daemon.nix @@ -36,6 +36,7 @@ in # Avoid weird failures for builders. services.openssh.settings.MaxStartups = 100; + services.openssh.settings.MaxSessions = 100; # Memory accounting techniques systemd.services.nix-daemon.serviceConfig = {