diff options
author | makefu <github@syntax-fehler.de> | 2015-08-23 15:03:11 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-08-23 15:03:11 +0200 |
commit | 7950ba3ce0033a38b63301dad509fc84d982632f (patch) | |
tree | 6e80abead500634af0c43fe142db391518f5bf5b /2configs/wwan.nix | |
parent | 25d39ea770cf6c63016d8539637ec319df334f0a (diff) |
makefu:add wwan configuration for netzclub
Diffstat (limited to '2configs/wwan.nix')
-rw-r--r-- | 2configs/wwan.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/2configs/wwan.nix b/2configs/wwan.nix index fdf3e8dfc..1492213bb 100644 --- a/2configs/wwan.nix +++ b/2configs/wwan.nix @@ -1,4 +1,5 @@ { config, lib, pkgs, ... }: + let mainUser = config.krebs.build.user; in { @@ -6,5 +7,21 @@ in { wvdial ]; + # configure for NETZCLUB + environment.wvdial.dialerDefaults = '' + Phone = *99***1# + Dial Command = ATDT + Modem = /dev/ttyACM0 + Baud = 460800 + Init1 = AT+CGDCONT=1,"IP","pinternet.interkom.de","",0,0 + Init2 = ATZ + Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 + ISDN = 0 + Modem Type = Analog Modem + Username = netzclub + Password = netzclub + Stupid Mode = 1 + Idle Seconds = 0''; + users.extraUsers.${mainUser.name}.extraGroups = [ "dialout" ]; } |