mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-19 11:42:43 +00:00
make the source of variable from environment
This commit is contained in:
parent
4a96316b6d
commit
660a774310
4
nix.py
4
nix.py
@ -11,8 +11,8 @@ from pathlib import Path
|
||||
|
||||
from urllib3.util.retry import Retry
|
||||
|
||||
UPSTREAM_URL = 'https://nixos.org/releases/nix'
|
||||
MIRROR_BASE_URL = 'https://mirrors.tuna.tsinghua.edu.cn/nix'
|
||||
UPSTREAM_URL = os.getenv("TUNASYNC_UPSTREAM_URL", 'https://nixos.org/releases/nix/')
|
||||
MIRROR_BASE_URL = os.getenv("MIRROR_BASE_URL", 'https://mirrors.tuna.tsinghua.edu.cn/nix')
|
||||
WORKING_DIR = os.getenv("TUNASYNC_WORKING_DIR", 'working')
|
||||
CLONE_SINCE = datetime(2018, 6, 1)
|
||||
TIMEOUT = 60
|
||||
|
Loading…
x
Reference in New Issue
Block a user