diff options
author | Luca Bruno <lethalman88@gmail.com> | 2015-06-12 13:02:06 +0200 |
---|---|---|
committer | Luca Bruno <lethalman88@gmail.com> | 2015-06-12 13:02:35 +0200 |
commit | da7748a6fc47e9efec56470ec01f9a137c14816f (patch) | |
tree | d641906b43ee05ce5fe49482600b53defbf954a4 /nixos/modules/services/x11/xserver.nix | |
parent | c07fb11cd2c7495780200f26ac798574ea0dd111 (diff) | |
download | nixlib-da7748a6fc47e9efec56470ec01f9a137c14816f.tar nixlib-da7748a6fc47e9efec56470ec01f9a137c14816f.tar.gz nixlib-da7748a6fc47e9efec56470ec01f9a137c14816f.tar.bz2 nixlib-da7748a6fc47e9efec56470ec01f9a137c14816f.tar.lz nixlib-da7748a6fc47e9efec56470ec01f9a137c14816f.tar.xz nixlib-da7748a6fc47e9efec56470ec01f9a137c14816f.tar.zst nixlib-da7748a6fc47e9efec56470ec01f9a137c14816f.zip |
nixos: set high fs.inotify.max_user_watches when xserver is enabled
Diffstat (limited to 'nixos/modules/services/x11/xserver.nix')
-rw-r--r-- | nixos/modules/services/x11/xserver.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix index 5198864ef6ef..9fddc6a72104 100644 --- a/nixos/modules/services/x11/xserver.nix +++ b/nixos/modules/services/x11/xserver.nix @@ -469,6 +469,11 @@ in environment.pathsToLink = [ "/etc/xdg" "/share/xdg" "/share/applications" "/share/icons" "/share/pixmaps" ]; + # The default max inotify watches is 8192. + # Nowadays most apps require a good number of inotify watches, + # the value below is used by default on several other distros. + boot.kernel.sysctl."fs.inotify.max_user_watches" = mkDefault 524288; + systemd.defaultUnit = mkIf cfg.autorun "graphical.target"; systemd.services.display-manager = |