summary refs log tree commit diff
path: root/nixos/modules/services/network-filesystems
diff options
context:
space:
mode:
authorDavid Kleuker <davidak@users.noreply.github.com>2017-12-14 18:12:44 +0100
committerJoachim F <joachifm@users.noreply.github.com>2017-12-14 17:12:44 +0000
commitffc0bfa5b772e68d37fcee1e65ad7993af9bb999 (patch)
tree8463140e0cb215fa072402bcab15a5b90f3f26f3 /nixos/modules/services/network-filesystems
parentfbc452c836d1cd8f923621086eead2abfd2b1698 (diff)
downloadnixlib-ffc0bfa5b772e68d37fcee1e65ad7993af9bb999.tar
nixlib-ffc0bfa5b772e68d37fcee1e65ad7993af9bb999.tar.gz
nixlib-ffc0bfa5b772e68d37fcee1e65ad7993af9bb999.tar.bz2
nixlib-ffc0bfa5b772e68d37fcee1e65ad7993af9bb999.tar.lz
nixlib-ffc0bfa5b772e68d37fcee1e65ad7993af9bb999.tar.xz
nixlib-ffc0bfa5b772e68d37fcee1e65ad7993af9bb999.tar.zst
nixlib-ffc0bfa5b772e68d37fcee1e65ad7993af9bb999.zip
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
Diffstat (limited to 'nixos/modules/services/network-filesystems')
-rw-r--r--nixos/modules/services/network-filesystems/samba.nix1
1 files changed, 1 insertions, 0 deletions
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";
       };