From 0f9ee67f8600b41b3b04024654122ef5196a9566 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Sat, 29 Nov 2025 17:27:41 +0800 Subject: [PATCH] feat: c1 dockerd use proxy (WIP) --- modules/nasp/main.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/nasp/main.nix b/modules/nasp/main.nix index 25b2bf3..f4a5720 100644 --- a/modules/nasp/main.nix +++ b/modules/nasp/main.nix @@ -247,11 +247,17 @@ in experimental = true; ip6tables = true; live-restore = false; + }; }; environment.systemPackages = with pkgs; [ dnew ]; + systemd.services.docker.serviceConfig.Environment = [ + "HTTP_PROXY=http://192.168.20.1:8118/" + "HTTPS_PROXY=http://192.168.20.1:8118/" + "NO_PROXY=localhost,127.0.0.0/8,nasp.fit" + ]; }) # nginx (lib.mkIf (nginxCfg.enable) {