From 04bfc2cbd69e4343cb7227a146507f92d2f4e11b Mon Sep 17 00:00:00 2001 From: lzc256 Date: Wed, 15 May 2024 13:12:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20add-proxy.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- add-proxy.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 add-proxy.sh diff --git a/add-proxy.sh b/add-proxy.sh new file mode 100644 index 0000000..ebaeffd --- /dev/null +++ b/add-proxy.sh @@ -0,0 +1,9 @@ +#!/run/current-system/sw/bin/bash +sudo mkdir /run/systemd/system/nix-daemon.service.d/ +sudo cat << EOF >/run/systemd/system/nix-daemon.service.d/override.conf +[Service] +Environment="https_proxy=socks5h://127.0.0.1:7890" + +EOF +sudo systemctl daemon-reload +sudo systemctl restart nix-daemon