diff --git a/hosts/home/configuration.nix b/hosts/home/configuration.nix index 9680f44..2d0401a 100644 --- a/hosts/home/configuration.nix +++ b/hosts/home/configuration.nix @@ -16,21 +16,22 @@ ################################################################################ local.services.byedpi = { enable = true; - enableProxy = false; settings = { + ip = "127.0.0.1"; port = 1081; + debugLevel = 2; }; groupSettings = [ { name = "googlevideo"; hosts = "googlevideo.com"; - disoob = 3; - disorder = 7; + disorder = 1; + split = 7; } { name = "youtube"; hosts = "youtube.com"; - fake = 1; + disorder = 1; } { name = "none"; diff --git a/modules/nixos/services/byedpi.nix b/modules/nixos/services/byedpi.nix index c4ca08f..7088d2e 100644 --- a/modules/nixos/services/byedpi.nix +++ b/modules/nixos/services/byedpi.nix @@ -99,8 +99,8 @@ in default = [ ]; }; ttl = mkOption { - type = types.int; - default = 8; + type = types.nullOr types.int; + default = null; }; split = mkSplitOption "Split packet at n"; disorder = mkSplitOption "Split and send reverse order"; @@ -127,9 +127,11 @@ in networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ cfg.settings.port ]; networking.proxy = lib.mkIf cfg.enableProxy rec { - allProxy = "http://${cfg.settings.ip}:${toString cfg.settings.port}"; - httpProxy = allProxy; - httpsProxy = allProxy; + /* + allProxy = "socks5://${cfg.settings.ip}:${toString cfg.settings.port}"; + httpProxy = allProxy; + httpsProxy = allProxy; + */ }; systemd.services.byedpi = {