nixos: set high fs.inotify.max_user_watches when xserver is enabled

+5
+5
nixos/modules/services/x11/xserver.nix
··· 469 469 environment.pathsToLink = 470 470 [ "/etc/xdg" "/share/xdg" "/share/applications" "/share/icons" "/share/pixmaps" ]; 471 471 472 + # The default max inotify watches is 8192. 473 + # Nowadays most apps require a good number of inotify watches, 474 + # the value below is used by default on several other distros. 475 + boot.kernel.sysctl."fs.inotify.max_user_watches" = mkDefault 524288; 476 + 472 477 systemd.defaultUnit = mkIf cfg.autorun "graphical.target"; 473 478 474 479 systemd.services.display-manager =