summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-09-19 20:28:12 +0200
committerlassulus <lassulus@lassul.us>2017-09-19 20:35:28 +0200
commit358ff6da9c9b7b2ae574f759a8af6266ce642baa (patch)
treed8b4b51ab2cd07d8b1316d245e5ba9282bdb61b4
parent0e11d7af9981c0b24f52c9d15b8b107a8d78b17f (diff)
l umts: fix connection
-rw-r--r--lass/3modules/umts.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/lass/3modules/umts.nix b/lass/3modules/umts.nix
index c93c65ad2..207278440 100644
--- a/lass/3modules/umts.nix
+++ b/lass/3modules/umts.nix
@@ -61,6 +61,7 @@ let
'';
wvdial-defaults = ''
+ [Dialer Defaults]
Modem = ${cfg.modem}
${cfg.initstrings}
Modem Type = Analog Modem
@@ -70,6 +71,7 @@ let
Password = ${cfg.password}
Stupid Mode = 1
Idle Seconds = 0
+ PPPD Path = ${pkgs.ppp}/bin/pppd
'';
imp = {
@@ -77,6 +79,10 @@ let
umts = "sudo ${umts-bin}/bin/umts";
};
+ environment.systemPackages = [
+ pkgs.ppp
+ ];
+
security.sudo.extraConfig = ''
lass ALL= (root) NOPASSWD: ${umts-bin}/bin/umts
'';