2015-08-23 12:35:13 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2015-08-23 13:03:11 +00:00
|
|
|
|
2015-08-24 09:06:10 +00:00
|
|
|
#usage: $ wvdial
|
|
|
|
|
2015-08-23 12:35:13 +00:00
|
|
|
let
|
|
|
|
mainUser = config.krebs.build.user;
|
|
|
|
in {
|
|
|
|
environment.systemPackages = with pkgs;[
|
|
|
|
wvdial
|
|
|
|
];
|
|
|
|
|
2015-08-23 13:03:11 +00:00
|
|
|
# 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'';
|
|
|
|
|
2015-08-23 12:35:13 +00:00
|
|
|
users.extraUsers.${mainUser.name}.extraGroups = [ "dialout" ];
|
|
|
|
}
|