diff options
author | makefu <github@syntax-fehler.de> | 2017-02-16 18:28:59 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-03-05 16:55:43 +0100 |
commit | d5f26f28317a923397a36309554396194bfcad27 (patch) | |
tree | 64e98f3431c8ffa85d75c58613760a91e88509d7 | |
parent | c05764274e5043912204b56cb1f032e1d5db6717 (diff) |
m umts: add apn option
-rw-r--r-- | makefu/1systems/x.nix | 1 | ||||
-rw-r--r-- | makefu/3modules/umts.nix | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/makefu/1systems/x.nix b/makefu/1systems/x.nix index 08da92068..57e120e63 100644 --- a/makefu/1systems/x.nix +++ b/makefu/1systems/x.nix @@ -66,6 +66,7 @@ ]; makefu.server.primary-itf = "wlp2s0"; makefu.full-populate = true; + makefu.umts.apn = "web.vodafone.de"; nixpkgs.config.allowUnfree = true; krebs.nginx = { diff --git a/makefu/3modules/umts.nix b/makefu/3modules/umts.nix index 91ac13755..86669945a 100644 --- a/makefu/3modules/umts.nix +++ b/makefu/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 = { |