summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/wwan.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-01-16 02:01:48 +0100
committermakefu <github@syntax-fehler.de>2016-01-16 02:01:48 +0100
commit7cf54a1d791fff716968a145feb55f28b84aef76 (patch)
treec140efc5965c2b4a74c1a479b7867148ea9bb4c6 /makefu/2configs/wwan.nix
parent3bb965c3f071f30a2ac381fb18cb2da5603193a3 (diff)
parent0c1c54e728d8838b184d43a9adb67f4258a21569 (diff)
Merge branch 'master' of gum:stockholm
Diffstat (limited to 'makefu/2configs/wwan.nix')
-rw-r--r--makefu/2configs/wwan.nix36
1 files changed, 6 insertions, 30 deletions
diff --git a/makefu/2configs/wwan.nix b/makefu/2configs/wwan.nix
index 29a610ac6..1e76cd28a 100644
--- a/makefu/2configs/wwan.nix
+++ b/makefu/2configs/wwan.nix
@@ -1,33 +1,9 @@
-{ config, lib, pkgs, ... }:
+_:
-#usage: $ wvdial
-
-let
- mainUser = config.krebs.build.user;
-in {
- environment.systemPackages = with pkgs;[
- wvdial
- ];
-
- environment.shellAliases = {
- umts = "sudo wvdial netzclub";
+{
+ imports = [ ../3modules ];
+ makefu.umts = {
+ enable = true;
+ modem-device = "/dev/serial/by-id/usb-Lenovo_H5321_gw_2D5A51BA0D3C3A90-if01";
};
-
- # 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" ];
}