l: split ppp.nix by modem
This commit is contained in:
parent
34470a6e92
commit
1562ee7ca9
33
lass/2configs/ppp/umts-stick.nix
Normal file
33
lass/2configs/ppp/umts-stick.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ pkgs, ... }: {
|
||||
|
||||
# usage: pppd call stick
|
||||
|
||||
environment.etc."ppp/peers/stick".text = ''
|
||||
/dev/ttyUSB0
|
||||
460800
|
||||
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
|
||||
];
|
||||
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
{ pkgs, ... }: {
|
||||
|
||||
# usage: pppd call default
|
||||
# usage: pppd call x220
|
||||
|
||||
environment.etc."ppp/peers/default".text = ''
|
||||
environment.etc."ppp/peers/x220".text = ''
|
||||
/dev/ttyACM2
|
||||
921600
|
||||
crtscts
|
Loading…
Reference in New Issue
Block a user