From e2b4ba85eaccacaaccbaec644bc80779cdbb7676 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 12 Aug 2024 20:02:56 -0400 Subject: [PATCH] phone: Ensure 4G connection on initial build This is a huge step towards using the phone as a phone without having to worry about using Phosh long-term. This could potentially lead to an extremely minimal phone in the future that has improved performance for simple tasks. --- hosts/phone/configuration.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hosts/phone/configuration.nix b/hosts/phone/configuration.nix index 1fe95beb..27f003a7 100644 --- a/hosts/phone/configuration.nix +++ b/hosts/phone/configuration.nix @@ -212,6 +212,23 @@ in wireless.enable = false; wireguard.enable = true; + networkmanager.ensureProfiles.profiles = { + mobile = { + connection = { + id = "4G"; + type = "gsm"; + }; + + gsm.apn = "NXTGENPHONE"; + ipv4.method = "auto"; + + ipv6 = { + addr-gen-mode = "default"; + method = "auto"; + }; + }; + }; + firewall.checkReversePath = mkForce false; };