diff options
author | Florian Klink <flokli@flokli.de> | 2021-04-21 13:45:13 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2021-04-21 13:49:40 +0200 |
commit | 7ff18cdf3c3b286f57018e6f3aad23c7a2a088f0 (patch) | |
tree | 4089860dee7a1f24bd399abccf9db3fe8f38bf58 /nixos/modules/services/x11/xserver.nix | |
parent | b3abdc9534a675da2aa7631d505a5f71ef30ecfa (diff) | |
download | nixpkgs-7ff18cdf3c3b286f57018e6f3aad23c7a2a088f0.tar nixpkgs-7ff18cdf3c3b286f57018e6f3aad23c7a2a088f0.tar.gz nixpkgs-7ff18cdf3c3b286f57018e6f3aad23c7a2a088f0.tar.bz2 nixpkgs-7ff18cdf3c3b286f57018e6f3aad23c7a2a088f0.tar.lz nixpkgs-7ff18cdf3c3b286f57018e6f3aad23c7a2a088f0.tar.xz nixpkgs-7ff18cdf3c3b286f57018e6f3aad23c7a2a088f0.tar.zst nixpkgs-7ff18cdf3c3b286f57018e6f3aad23c7a2a088f0.zip |
nixos/xserver: set fs.inotify.max_user_instances too
A too low number of inotify user instances causes similar problems as max_user_watches. Without this, my workstation keeps running into things like this: $ sudo systemctl restart display-manager.service Failed to allocate directory watch: Too many open files
Diffstat (limited to 'nixos/modules/services/x11/xserver.nix')
-rw-r--r-- | nixos/modules/services/x11/xserver.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix index 35bd4dabb67..4dde4476d2c 100644 --- a/nixos/modules/services/x11/xserver.nix +++ b/nixos/modules/services/x11/xserver.nix @@ -666,6 +666,7 @@ in # 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_instances" = mkDefault 524288; boot.kernel.sysctl."fs.inotify.max_user_watches" = mkDefault 524288; systemd.defaultUnit = mkIf cfg.autorun "graphical.target"; |