Add wwan networking

This commit is contained in:
Fabian Hauser 2019-12-23 21:29:42 +00:00
parent a9e5fa79a5
commit bf015614b6
4 changed files with 88 additions and 111 deletions

View file

@ -5,7 +5,7 @@
{ config, pkgs, ... }:
let routerConfig = {
wanCardAddress = "00:0d:b9:51:a2:74";
wanInterface = "wwp0s19u1u3i12";
wireless = {
wleInterface = "wlp5s0";
wleSSID = "hauser";
@ -25,12 +25,13 @@ let routerConfig = {
in
{
imports =
[
../hardware/apu.nix
../hardware/wle900vx.nix
../role/base.nix
../role/wwan.nix
../role/networking/wwan.nix
(import ../role/router.nix routerConfig)
];
@ -45,6 +46,7 @@ in
];
services.wwan = {
enable = true;
apn = "gprs.swisscom.ch";
networkInterface = "wwp0s19u1u3i12";
};