1 # Global configuration for wvdial.
11 cfg = config.environment.wvdial;
15 environment.wvdial = {
16 dialerDefaults = lib.mkOption {
19 example = ''Init1 = AT+CGDCONT=1,"IP","internet.t-mobile"'';
21 Contents of the "Dialer Defaults" section of
22 <filename>/etc/wvdial.conf</filename>.
25 pppDefaults = lib.mkOption {
34 description = "Default ppp settings for wvdial.";
39 config = lib.mkIf (cfg.dialerDefaults != "") {
40 environment.etc."wvdial.conf".source = pkgs.writeText "wvdial.conf" ''
42 PPPD PATH = ${pkgs.ppp}/sbin/pppd
43 ${config.environment.wvdial.dialerDefaults}
45 environment.etc."ppp/peers/wvdial".source = pkgs.writeText "wvdial" cfg.pppDefaults;