From 31a1ae1f957fc988859f496553224ccb38e3af72 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sat, 12 Jan 2019 13:47:41 +0100 Subject: [PATCH] steam: limite nofile --- systems/ASUS-G46VW/configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/systems/ASUS-G46VW/configuration.nix b/systems/ASUS-G46VW/configuration.nix index 4dba9dc..f1590cc 100644 --- a/systems/ASUS-G46VW/configuration.nix +++ b/systems/ASUS-G46VW/configuration.nix @@ -200,6 +200,16 @@ services.syncthing.user = "paul"; services.syncthing.group = "users"; + # Set limits for esync (SteamPlay Proton) + systemd.extraConfig = "DefaultLimitNOFILE=1048576"; + + security.pam.loginLimits = [{ + domain = "*"; + type = "hard"; + item = "nofile"; + value = "1048576"; + }]; + # This value determines the NixOS release with which your system is to be # compatible, in order to avoid breaking some software such as database # servers. You should change this only after NixOS release notes say you