~sumner/nixos-configuration

5571fe4be8dfa828cb4c9f267a7d6522bcc82997 — Sumner Evans 2 years ago c4a8c87
sysctl: make fs.inotify max for all platforms
2 files changed, 3 insertions(+), 8 deletions(-)

M modules/hardware/default.nix
M modules/services/gui/sway.nix
M modules/hardware/default.nix => modules/hardware/default.nix +3 -0
@@ 28,6 28,9 @@ in
          message = "isPC and isServer are mutually exclusive";
        }
      ];

      boot.kernel.sysctl."fs.inotify.max_user_instances" = mkDefault 524288;
      boot.kernel.sysctl."fs.inotify.max_user_watches" = mkDefault 524288;
    }

    (

M modules/services/gui/sway.nix => modules/services/gui/sway.nix +0 -8
@@ 20,13 20,5 @@ in
    };

    programs.sway.enable = true;

    # This is set when on Xorg, but for some reason not under sway.
    # 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.
    # See xserver.nix in nixpkgs.
    boot.kernel.sysctl."fs.inotify.max_user_instances" = mkDefault 524288;
    boot.kernel.sysctl."fs.inotify.max_user_watches" = mkDefault 524288;
  };
}