lass umts: no longer use environment.wvdial

This commit is contained in:
lassulus 2017-08-26 12:35:50 +02:00
parent 7f08382fbe
commit d970e20a5a

View File

@ -31,6 +31,16 @@ let
type = types.str; type = types.str;
default = "default"; default = "default";
}; };
pppDefaults = mkOption {
type = types.str;
default = ''
noipdefault
usepeerdns
defaultroute
persist
noauth
'';
};
}; };
nixpkgs-1509 = import (pkgs.fetchFromGitHub { nixpkgs-1509 = import (pkgs.fetchFromGitHub {
@ -71,7 +81,16 @@ let
lass ALL= (root) NOPASSWD: ${umts-bin}/bin/umts 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 = { systemd.services.umts = {
description = "UMTS wvdial Service"; description = "UMTS wvdial Service";