From 8276b86255d7fc524cd909e4a8802899556eafd3 Mon Sep 17 00:00:00 2001 From: Alex Mickelson Date: Mon, 20 Oct 2025 15:10:10 -0600 Subject: [PATCH] file limits --- home-server/musicbrainz/docker-compose.yml | 1 - nix/home-server.nix | 15 ++++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/home-server/musicbrainz/docker-compose.yml b/home-server/musicbrainz/docker-compose.yml index 6a90de6..61e62ae 100644 --- a/home-server/musicbrainz/docker-compose.yml +++ b/home-server/musicbrainz/docker-compose.yml @@ -66,7 +66,6 @@ services: environment: SOLR_HEAP: 512m LOG4J_FORMAT_MSG_NO_LOOKUPS: "true" - mem_swappiness: 1 volumes: - /data/musicbrainz/solr:/var/solr - /data/musicbrainz/dbdump:/media/dbdump:ro diff --git a/nix/home-server.nix b/nix/home-server.nix index bf47352..a4e42f5 100644 --- a/nix/home-server.nix +++ b/nix/home-server.nix @@ -8,7 +8,20 @@ ./modules/k3s.nix ./modules/pci-passthrough.nix ]; - + security.pam.loginLimits = [ + { + domain = "*"; + type = "soft"; + item = "nofile"; + value = "65000"; + } + { + domain = "*"; + type = "hard"; + item = "nofile"; + value = "65000"; + } + ]; # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true;