From e025d2dce37a5209522a8bcdaa558fa0de4c0a9d Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 9 Sep 2025 15:03:52 +0000 Subject: [PATCH] Increase open file limits for building the system Without this I was hitting issues when building the authentik flake which apparently is quite large and complex. --- modules/system/base.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/system/base.nix b/modules/system/base.nix index d5be555..e9b1ac2 100644 --- a/modules/system/base.nix +++ b/modules/system/base.nix @@ -17,7 +17,16 @@ ]; i18n.defaultLocale = "en_US.UTF-8"; networking.useNetworkd = true; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings = { + download-buffer-size = 524288000; + experimental-features = [ "nix-command" "flakes" ]; + }; + security.pam.loginLimits = [{ + domain = "*"; + type = "soft"; + item = "nofile"; + value = "8192"; + }]; services.swapspace.enable = true; systemd.network = { enable = true;