nixos-module/server/lxc-containers: sysctl only when enabled

This commit is contained in:
Astro 2021-07-14 19:01:24 +02:00
parent 0cee77c2b4
commit dbca546593
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ let
'';
in
{
boot.kernel.sysctl = {
boot.kernel.sysctl = lib.mkIf enabled {
"fs.inotify.max_queued_events" = 1048576;
"fs.inotify.max_user_instances" = 1048576;
"fs.inotify.max_user_watches" = 1048576;