添加 add-proxy.sh
parent
c3cfc31e8d
commit
04bfc2cbd6
|
@ -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
|
Loading…
Reference in New Issue