fixup! nixos: mihomo -> sing-box
This commit is contained in:
parent
3d6c3ab652
commit
365c35cb8d
1 changed files with 11 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue