From 1a33349f29f23585196f63572af1b2ece2d2c534 Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 2 Dec 2023 20:11:50 +0900 Subject: [PATCH] sysctl changes for tons of containers --- nixos/hosts/framework-server/docker.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/hosts/framework-server/docker.nix b/nixos/hosts/framework-server/docker.nix index 8363a733..8708f87f 100644 --- a/nixos/hosts/framework-server/docker.nix +++ b/nixos/hosts/framework-server/docker.nix @@ -1,4 +1,8 @@ { pkgs, ... }: { + boot.kernel.sysctl = { + "fs.inotify.max_user_watches" = 10485760; + "fs.inotify.max_user_instances" = 1024; + }; virtualisation.docker = { enable = true; enableOnBoot = true; @@ -9,4 +13,4 @@ }; environment.systemPackages = with pkgs; [ docker-compose ]; -} \ No newline at end of file +}