This commit is contained in:
@@ -55,6 +55,26 @@
|
||||
"d /opt/configs/caddy/lego 0755 ada users - -"
|
||||
];
|
||||
|
||||
programs.bash.interactiveShellInit = ''
|
||||
proxy_on() {
|
||||
export http_proxy=http://192.168.1.10:10172
|
||||
export https_proxy=http://192.168.1.10:10172
|
||||
export HTTP_PROXY=http://192.168.1.10:10172
|
||||
export HTTPS_PROXY=http://192.168.1.10:10172
|
||||
export all_proxy=socks5://192.168.1.10:10171
|
||||
export ALL_PROXY=socks5://192.168.1.10:10171
|
||||
export ftp_proxy=http://192.168.1.10:10172
|
||||
export FTP_PROXY=http://192.168.1.10:10172
|
||||
export no_proxy=localhost,127.0.0.0/8,::1,192.168.1.0/24
|
||||
export NO_PROXY=localhost,127.0.0.0/8,::1,192.168.1.0/24
|
||||
}
|
||||
proxy_off() {
|
||||
unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY
|
||||
unset all_proxy ALL_PROXY ftp_proxy FTP_PROXY
|
||||
unset no_proxy NO_PROXY
|
||||
}
|
||||
'';
|
||||
|
||||
services.gitea-actions-runner.instances."mini-pc-nixos" = {
|
||||
name = "mini-pc-nixos";
|
||||
url = "https://git.ada-dev.ru"; # поменяй на свой URL
|
||||
|
||||
Reference in New Issue
Block a user