fixup! nixos: mihomo -> sing-box

This commit is contained in:
Guanran Wang 2024-08-24 16:58:06 +08:00
parent 3d6c3ab652
commit 365c35cb8d
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF

View file

@ -6,6 +6,10 @@
services.sing-box = { services.sing-box = {
enable = true; enable = true;
settings = { settings = {
log = {
level = "info";
};
inbounds = [ inbounds = [
{ {
type = "http"; type = "http";
@ -67,12 +71,15 @@
}; };
### System proxy settings ### System proxy settings
networking.proxy.default = "http://127.0.0.1:1080/"; networking.proxy = {
httpProxy = "http://127.0.0.1:1080/";
httpsProxy = "http://127.0.0.1:1080/";
};
environment.shellAliases = let environment.shellAliases = let
inherit (config.networking) proxy; inherit (config.networking.proxy) httpProxy httpsProxy;
in { in {
"setproxy" = "export http_proxy=${proxy.httpProxy} https_proxy=${proxy.httpsProxy} all_proxy=${proxy.allProxy} ftp_proxy=${proxy.ftpProxy} rsync_proxy=${proxy.rsyncProxy}"; "setproxy" = "export http_proxy=${httpProxy} https_proxy=${httpsProxy}";
"unsetproxy" = "set -e http_proxy https_proxy all_proxy ftp_proxy rsync_proxy"; "unsetproxy" = "set -e http_proxy https_proxy";
}; };
### sops-nix ### sops-nix