nixos-module/server/lxc-containers: sysctl only when enabled
This commit is contained in:
parent
0cee77c2b4
commit
dbca546593
|
@ -141,7 +141,7 @@ let
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = lib.mkIf enabled {
|
||||||
"fs.inotify.max_queued_events" = 1048576;
|
"fs.inotify.max_queued_events" = 1048576;
|
||||||
"fs.inotify.max_user_instances" = 1048576;
|
"fs.inotify.max_user_instances" = 1048576;
|
||||||
"fs.inotify.max_user_watches" = 1048576;
|
"fs.inotify.max_user_watches" = 1048576;
|
||||||
|
|
Loading…
Reference in New Issue