2023-11-04 18:14:42 +08:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
...
|
2023-11-04 18:22:10 +08:00
|
|
|
}: {
|
|
|
|
environment.variables = {
|
|
|
|
"http_proxy" = "http://127.0.0.1:7890";
|
|
|
|
"https_proxy" = "http://127.0.0.1:7890";
|
|
|
|
"ftp_proxy" = "http://127.0.0.1:7890";
|
|
|
|
"rsync_proxy" = "http://127.0.0.1:7890";
|
2023-10-09 14:52:33 +08:00
|
|
|
};
|
|
|
|
|
2023-11-04 18:22:10 +08:00
|
|
|
launchd.daemons."nix-daemon".environment = {
|
2023-10-09 14:52:33 +08:00
|
|
|
"http_proxy" = "http://127.0.0.1:7890";
|
2023-10-10 17:49:57 +08:00
|
|
|
"https_proxy" = "http://127.0.0.1:7890";
|
|
|
|
"ftp_proxy" = "http://127.0.0.1:7890";
|
|
|
|
"rsync_proxy" = "http://127.0.0.1:7890";
|
2023-10-09 14:52:33 +08:00
|
|
|
};
|
|
|
|
|
2023-11-04 18:22:10 +08:00
|
|
|
launchd.daemons."clash-meta" = {
|
|
|
|
command = "${pkgs.clash-meta}/bin/clash-meta -d /etc/clash-meta";
|
|
|
|
};
|
|
|
|
|
2023-10-15 14:24:40 +08:00
|
|
|
environment.etc."clash-meta/metacubexd".source = inputs.metacubexd;
|
2023-11-04 18:14:42 +08:00
|
|
|
}
|