diff options
author | lassulus <lass@aidsballs.de> | 2015-08-23 16:53:38 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-08-23 16:53:38 +0200 |
commit | 65a2d75b140e7eca79a8084ef331b1d4db8f07f5 (patch) | |
tree | 0d1cd09fe24c1eacaf550859a44ab1fa1d686e0e /makefu/2configs/wwan.nix | |
parent | 8247a5a618d6b0fc3688077fe36508b8bf88dcc3 (diff) | |
parent | dce1ad91445297ecc122f968a12339438eabaa63 (diff) |
Merge branch 'makefu'
Diffstat (limited to 'makefu/2configs/wwan.nix')
-rw-r--r-- | makefu/2configs/wwan.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/makefu/2configs/wwan.nix b/makefu/2configs/wwan.nix new file mode 100644 index 000000000..1492213bb --- /dev/null +++ b/makefu/2configs/wwan.nix @@ -0,0 +1,27 @@ +{ config, lib, pkgs, ... }: + +let + mainUser = config.krebs.build.user; +in { + environment.systemPackages = with pkgs;[ + 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" ]; +} |