summaryrefslogtreecommitdiffstats
path: root/lass/3modules/umts.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-08-29 21:08:02 +0200
committertv <tv@krebsco.de>2017-08-29 21:08:02 +0200
commit247477863628a44c60f591c6df6cc9f5e7818e89 (patch)
tree2492ffb4cda34e13d9653fbebbaba8823875d0a9 /lass/3modules/umts.nix
parentfd69096a27575b9d4d87a10af1492b273dad167c (diff)
parent48c75276c5a5ed8e7ea33ccb330f8ee6b7a6a927 (diff)
Merge remote-tracking branch 'stro/master'
Diffstat (limited to 'lass/3modules/umts.nix')
-rw-r--r--lass/3modules/umts.nix21
1 files changed, 20 insertions, 1 deletions
diff --git a/lass/3modules/umts.nix b/lass/3modules/umts.nix
index 83de4d403..c93c65ad2 100644
--- a/lass/3modules/umts.nix
+++ b/lass/3modules/umts.nix
@@ -31,6 +31,16 @@ let
type = types.str;
default = "default";
};
+ pppDefaults = mkOption {
+ type = types.str;
+ default = ''
+ noipdefault
+ usepeerdns
+ defaultroute
+ persist
+ noauth
+ '';
+ };
};
nixpkgs-1509 = import (pkgs.fetchFromGitHub {
@@ -71,7 +81,16 @@ let
lass ALL= (root) NOPASSWD: ${umts-bin}/bin/umts
'';
- environment.wvdial.dialerDefaults = wvdial-defaults;
+ environment.etc = [
+ {
+ source = pkgs.writeText "wvdial.conf" wvdial-defaults;
+ target = "wvdial.conf";
+ }
+ {
+ source = pkgs.writeText "wvdial" cfg.pppDefaults;
+ target = "ppp/peers/wvdial";
+ }
+ ];
systemd.services.umts = {
description = "UMTS wvdial Service";