From ffc0bfa5b772e68d37fcee1e65ad7993af9bb999 Mon Sep 17 00:00:00 2001 From: David Kleuker Date: Thu, 14 Dec 2017 18:12:44 +0100 Subject: [PATCH] nixos/samba: increase LimitNOFILE to recommended value (#32085) fixes warning: rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) https://serverfault.com/a/641411 --- nixos/modules/services/network-filesystems/samba.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/network-filesystems/samba.nix b/nixos/modules/services/network-filesystems/samba.nix index 9b9c91a4f167..09cd9cb22ca8 100644 --- a/nixos/modules/services/network-filesystems/samba.nix +++ b/nixos/modules/services/network-filesystems/samba.nix @@ -56,6 +56,7 @@ let serviceConfig = { ExecStart = "${samba}/sbin/${appName} ${args}"; ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; + LimitNOFILE = 16384; Type = "notify"; };