添加 add-proxy.sh

main
落雨宸 2024-05-15 13:12:03 +08:00
parent c3cfc31e8d
commit 04bfc2cbd6
1 changed files with 9 additions and 0 deletions

9
add-proxy.sh 100644
View File

@ -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