diff options
author | happysalada <raphael@megzari.com> | 2021-08-31 09:17:57 +0900 |
---|---|---|
committer | Raphael Megzari <raphael@megzari.com> | 2021-08-31 09:50:59 +0900 |
commit | 977ac07fed14848c0dcbf0e17da1f5ea2778d600 (patch) | |
tree | 5e949ede2b082d589038459abf1bf2bf2c53259f /nixos/modules/services/network-filesystems/ipfs.nix | |
parent | 54dbdcbcbb9886ed01693b7e5a7947b8fad07d2e (diff) | |
download | nixpkgs-977ac07fed14848c0dcbf0e17da1f5ea2778d600.tar nixpkgs-977ac07fed14848c0dcbf0e17da1f5ea2778d600.tar.gz nixpkgs-977ac07fed14848c0dcbf0e17da1f5ea2778d600.tar.bz2 nixpkgs-977ac07fed14848c0dcbf0e17da1f5ea2778d600.tar.lz nixpkgs-977ac07fed14848c0dcbf0e17da1f5ea2778d600.tar.xz nixpkgs-977ac07fed14848c0dcbf0e17da1f5ea2778d600.tar.zst nixpkgs-977ac07fed14848c0dcbf0e17da1f5ea2778d600.zip |
ipfs: increase UDP buffer size
Diffstat (limited to 'nixos/modules/services/network-filesystems/ipfs.nix')
-rw-r--r-- | nixos/modules/services/network-filesystems/ipfs.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/network-filesystems/ipfs.nix b/nixos/modules/services/network-filesystems/ipfs.nix index c64fd07db8c..57eae46b17a 100644 --- a/nixos/modules/services/network-filesystems/ipfs.nix +++ b/nixos/modules/services/network-filesystems/ipfs.nix @@ -192,6 +192,9 @@ in environment.systemPackages = [ cfg.package ]; environment.variables.IPFS_PATH = cfg.dataDir; + # https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size + boot.kernel.sysctl."net.core.rmem_max" = mkDefault 2500000; + programs.fuse = mkIf cfg.autoMount { userAllowOther = true; }; |