From 818edccb340a9d78e5054f7aaec3a2642aedac90 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 28 Apr 2023 12:34:51 +0200 Subject: [PATCH] Increase locked memory to 1 GiB --- common/main.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/main.nix b/common/main.nix index 8a76649..b0147f9 100644 --- a/common/main.nix +++ b/common/main.nix @@ -22,6 +22,16 @@ serviceConfig.Restart = "always"; }; + # Increase limits + security.pam.loginLimits = [ + { + domain = "*"; + type = "-"; + item = "memlock"; + value = "1048576"; # 1 GiB of mem locked + } + ]; + time.timeZone = "Europe/Madrid"; i18n.defaultLocale = "en_DK.UTF-8";