diff options
author | lassulus <lassulus@lassul.us> | 2021-01-23 20:42:51 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-01-23 20:42:51 +0100 |
commit | 1562ee7ca9e271d4e2ddf3a5c2521b6243344fce (patch) | |
tree | 837cd3dbec95cdd9be1eaa9039e70a6ba0e8586b /lass/2configs | |
parent | 34470a6e92439ffeb4cf9112343e9745d97b709c (diff) |
l: split ppp.nix by modem
Diffstat (limited to 'lass/2configs')
-rw-r--r-- | lass/2configs/ppp/umts-stick.nix | 33 | ||||
-rw-r--r-- | lass/2configs/ppp/x220-modem.nix (renamed from lass/2configs/ppp.nix) | 4 |
2 files changed, 35 insertions, 2 deletions
diff --git a/lass/2configs/ppp/umts-stick.nix b/lass/2configs/ppp/umts-stick.nix new file mode 100644 index 000000000..64551a2b3 --- /dev/null +++ b/lass/2configs/ppp/umts-stick.nix @@ -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 + ]; + +} + diff --git a/lass/2configs/ppp.nix b/lass/2configs/ppp/x220-modem.nix index 9cc7568a5..d6facb724 100644 --- a/lass/2configs/ppp.nix +++ b/lass/2configs/ppp/x220-modem.nix @@ -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 |