From 56ea401766a0527fb56ffc1d819d9d89302f25c2 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 16 Feb 2017 18:28:59 +0100 Subject: m umts: add apn option --- 3modules/umts.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '3modules') diff --git a/3modules/umts.nix b/3modules/umts.nix index 91ac13755..86669945a 100644 --- a/3modules/umts.nix +++ b/3modules/umts.nix @@ -26,7 +26,7 @@ let Dial Command = ATDT Modem = ${cfg.modem-device} Baud = 460800 - Init1 = AT+CGDCONT=1,"IP","pinternet.interkom.de","",0,0 + Init1 = AT+CGDCONT=1,"IP","${config.makefu.umts.apn}","",0,0 Init2 = ATZ Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 ISDN = 0 @@ -54,6 +54,13 @@ let to avoid race conditions. ''; }; + apn = mkOption { + default = "pinternet.interkom.de"; + type = types.str; + description = '' + apn to use for dailing + ''; + }; }; imp = { -- cgit v1.2.3 [cgit] Unable to lock slot /tmp/cgit/67300000.lock: No such file or directory (2)