Open h1k0n opened 5 months ago
Are there any other APNs in the "Acess Point Names" setting other than "Default (3gnet)"? There should be a "联通彩信 (3gwap)"
Yes, I saw it. I chose 3gwap with username and password empty and immediately prompted connection failed. How should I configure it?
Weird. It works on my oneplus-enchilada. What's your phone model, nixpkgs and mobile-nixos revision? I'm using b211b392b8486ee79df6cdfb1157ad2133427a29 (2024/5/7) for nixpkgs and 5455e4455b231218f6198b39383a0ad4c1d6638e (2024/4/14) for mobile-nixos. The kernel version is 6.4.0
device: oneplus-6 nixpkgs rev: b211b392b8486ee79df6cdfb1157ad2133427a29 mobile-nixos rev: 5455e4455b231218f6198b39383a0ad4c1d6638e nixpkgs-gnome-mobile rev: 56824cb5737d0870ec8ac56c3013d9ae85ee8a98 kernel version: 6.4.0
flake.nix:
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
mobile-nixos = {
url = "github:nixos/mobile-nixos";
flake = false;
};
nixpkgs-gnome-mobile = {
url = "github:chuangzhu/nixpkgs-gnome-mobile";
};
};
outputs = { self, nixpkgs, mobile-nixos, nixpkgs-gnome-mobile }:
let
commonModules = [
(import "${mobile-nixos}/lib/configuration.nix" { device = "oneplus-enchilada"; })
(import ./configuration.nix)
nixpkgs-gnome-mobile.nixosModules.gnome-mobile
];
in
rec {
images = {
oneplus-enchilada-cross-x86_64-linux = nixosConfigurations.oneplus-enchilada-cross-x86_64-linux.config.mobile.outputs.android.android-fastboot-images;
oneplus-enchilada = nixosConfigurations.oneplus-enchilada.config.mobile.outputs.android.android-fastboot-images;
};
nixosConfigurations.oneplus-enchilada-cross-x86_64-linux = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = commonModules ++ [
{
nixpkgs.crossSystem = {
system = "aarch64-linux";
};
}
];
};
formatter.aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.nixpkgs-fmt;
nixosConfigurations.oneplus-enchilada = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = commonModules;
};
};
}
configuration.nix
{ config, lib, pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
services.openssh.enable = true;
users.users = {
root.password = "default";
alice = {
isNormalUser = true;
password = "123456";
extraGroups = [
"dialout"
"feedbackd"
"video"
"networkmanager"
"wheel"
];
};
};
environment.systemPackages = with pkgs; [
vim
wget
git
chatty
];
programs.calls.enable = true;
system.stateVersion = "24.05";
services.openssh.settings.PermitRootLogin = "yes";
}
build image:
nix build .#images.oneplus-enchilada --show-trace
I use these configurations and after flashing into my phone, it still prompts connection failed.
你好! 我测试发现4G无法上网。镜像由最新的提交构建,运营商是中国联通。 弹框要求输入APN密码: 这是ModemManager和NetworkManager日志: