mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 22:30:25 +01:00
feat: migrate all nixos services from idols to 12kingdoms
This commit is contained in:
@@ -21,12 +21,12 @@ pl = plistlib.loads(NIX_DAEMON_PLIST.read_bytes())
|
||||
# set http/https proxy
|
||||
# NOTE: curl only accept the lowercase of `http_proxy`!
|
||||
# NOTE: https://curl.se/libcurl/c/libcurl-env.html
|
||||
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