mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
17 lines
423 B
Nix
17 lines
423 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf mkDefault;
|
|
cfg = config.services.cloudflared;
|
|
in {
|
|
config = {
|
|
services.cloudflared.enable = mkDefault true;
|
|
boot.kernel.sysctl = mkIf (!config.boot.isContainer && cfg.enable) {
|
|
# https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes
|
|
"net.core.rmem_max" = mkDefault 2500000;
|
|
"net.core.wmem_max" = mkDefault 2500000;
|
|
};
|
|
};
|
|
}
|