aboutsummaryrefslogtreecommitdiff
path: root/modules/hardware.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-06-13 15:02:58 +0530
committerAkshay Nair <phenax5@gmail.com>2025-06-13 15:02:58 +0530
commitfb3c68a676643e60e396daf4076684e12d157677 (patch)
tree16a6ee14a9d745079e99a066ad30efda1f947e72 /modules/hardware.nix
parente6b171f9f1d975ffe34e7a34743b5e92e8593847 (diff)
downloadhomeserver-nixos-config-fb3c68a676643e60e396daf4076684e12d157677.tar.gz
homeserver-nixos-config-fb3c68a676643e60e396daf4076684e12d157677.zip
Syncthing + service router refactor
Diffstat (limited to 'modules/hardware.nix')
-rw-r--r--modules/hardware.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/hardware.nix b/modules/hardware.nix
index 5a20353..7b11ca6 100644
--- a/modules/hardware.nix
+++ b/modules/hardware.nix
@@ -63,4 +63,11 @@
swapDevices = [{ device = "/dev/disk/by-label/swap"; }];
networking.useDHCP = lib.mkDefault true;
+
+ systemd.extraConfig = ''DefaultLimitNOFILE=65536'';
+ systemd.user.extraConfig = ''DefaultLimitNOFILE=65536'';
+ boot.kernel.sysctl."fs.inotify.max_user_instances" = 8192;
+ security.pam.loginLimits = [
+ { domain = "*"; type = "-"; item = "nofile"; value = "65536"; }
+ ];
}