mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
feat: darwin
This commit is contained in:
1 parent
ad86ed60dc
commit
a9459e7606
3 files changed
+18
-12
No files matched your search
@@ -17,12 +17,12 @@ HTTP_PROXY = "http://127.0.0.1:7890"
|
||||
pl = plistlib.loads(NIX_DAEMON_PLIST.read_bytes())
|
||||
|
||||
# set http proxy
|
||||
pl["EnvironmentVariables"]["HTTP_PROXY"] = HTTP_PROXY
|
||||
pl["EnvironmentVariables"]["HTTPS_PROXY"] = HTTP_PROXY
|
||||
# pl["EnvironmentVariables"]["HTTP_PROXY"] = HTTP_PROXY
|
||||
# pl["EnvironmentVariables"]["HTTPS_PROXY"] = HTTP_PROXY
|
||||
|
||||
# remove http proxy
|
||||
# pl["EnvironmentVariables"].pop("HTTP_PROXY", None)
|
||||
# pl["EnvironmentVariables"].pop("HTTPS_PROXY", None)
|
||||
pl["EnvironmentVariables"].pop("HTTP_PROXY", None)
|
||||
pl["EnvironmentVariables"].pop("HTTPS_PROXY", None)
|
||||
|
||||
os.chmod(NIX_DAEMON_PLIST, 0o644)
|
||||
NIX_DAEMON_PLIST.write_bytes(plistlib.dumps(pl))
|
||||
|
||||
Reference in new issue
Block a user