stockholm/lass/2configs/ppp/umts-stick.nix

34 lines
508 B
Nix
Raw Normal View History

2020-04-22 13:53:22 +00:00
{ pkgs, ... }: {
2021-01-23 19:42:51 +00:00
# usage: pppd call stick
2020-04-22 13:53:22 +00:00
2021-01-23 19:42:51 +00:00
environment.etc."ppp/peers/stick".text = ''
/dev/ttyUSB0
460800
2020-04-22 13:53:22 +00:00
crtscts
defaultroute
holdoff 10
lock
maxfail 0
noauth
nodetach
noipdefault
passive
persist
usepeerdns
connect "${pkgs.ppp}/bin/chat -f ${pkgs.writeText "default.chat" ''
ABORT "BUSY"
ABORT "NO CARRIER"
REPORT CONNECT
"" "ATDT*99#"
CONNECT
''}"
'';
environment.systemPackages = [
pkgs.ppp
];
}
2021-01-23 19:42:51 +00:00