2023-11-04 10:14:42 +00:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
...
|
2023-11-04 10:22:10 +00: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 06:52:33 +00:00
|
|
|
};
|
|
|
|
|
2023-11-04 10:22:10 +00:00
|
|
|
launchd.daemons."nix-daemon".environment = {
|
2023-10-09 06:52:33 +00:00
|
|
|
"http_proxy" = "http://127.0.0.1:7890";
|
2023-10-10 09:49:57 +00: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 06:52:33 +00:00
|
|
|
};
|
|
|
|
|
2023-11-04 10:22:10 +00:00
|
|
|
launchd.daemons."clash-meta" = {
|
|
|
|
command = "${pkgs.clash-meta}/bin/clash-meta -d /etc/clash-meta";
|
|
|
|
};
|
|
|
|
|
2023-10-15 06:24:40 +00:00
|
|
|
environment.etc."clash-meta/metacubexd".source = inputs.metacubexd;
|
2023-11-04 10:14:42 +00:00
|
|
|
}
|