fix: the proxy script (#247)

This commit is contained in:
Leenuus
2025-08-29 21:53:28 +08:00
committed by GitHub
parent 6f96d254c0
commit 3dc2395649
2 changed files with 4 additions and 4 deletions

View File

@@ -294,8 +294,8 @@ If you only need to use a proxy temporarily, you can set the proxy environment v
with the following commands:
```bash
sudo mkdir /run/systemd/system/nix-daemon.service.d/
cat << EOF >/run/systemd/system/nix-daemon.service.d/override.conf
sudo mkdir -p /run/systemd/system/nix-daemon.service.d/
sudo tee /run/systemd/system/nix-daemon.service.d/override.conf <<EOF
[Service]
Environment="https_proxy=socks5h://localhost:7891"
EOF

View File

@@ -271,8 +271,8 @@ Nix 提供了
如果你只是临时需要使用代理,可以通过如下命令设置代理环境变量:
```bash
sudo mkdir /run/systemd/system/nix-daemon.service.d/
cat << EOF >/run/systemd/system/nix-daemon.service.d/override.conf
sudo mkdir -p /run/systemd/system/nix-daemon.service.d/
sudo tee /run/systemd/system/nix-daemon.service.d/override.conf <<EOF
[Service]
Environment="https_proxy=socks5h://localhost:7891"
EOF