reformat all the nix files
using nix run -f channel:nixos-unstable nixfmt -c nixfmt $(git ls-files *.nix)
This commit is contained in:
parent
a7f51f92f1
commit
bf0be939cc
14 changed files with 312 additions and 312 deletions
|
@ -24,47 +24,48 @@ let
|
|||
systemctl restart wwan.service
|
||||
fi
|
||||
'';
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.services.wwan = {
|
||||
enable = mkEnableOption "wwan client service";
|
||||
|
||||
apn = mkOption {
|
||||
type = types.str;
|
||||
type = types.str;
|
||||
description = ''
|
||||
APN domain of provider.
|
||||
APN domain of provider.
|
||||
'';
|
||||
};
|
||||
|
||||
apnUser = mkOption {
|
||||
type = types.str;
|
||||
type = types.str;
|
||||
default = "";
|
||||
description = ''
|
||||
APN username (optional).
|
||||
APN username (optional).
|
||||
'';
|
||||
};
|
||||
|
||||
apnPass = mkOption {
|
||||
type = types.str;
|
||||
type = types.str;
|
||||
default = "";
|
||||
description = ''
|
||||
APN password (optional).
|
||||
APN password (optional).
|
||||
'';
|
||||
};
|
||||
|
||||
apnAuth = mkOption {
|
||||
type = types.enum [ "PAP" "CHAP" "MSCHAPV2" "" ];
|
||||
type = types.enum [ "PAP" "CHAP" "MSCHAPV2" "" ];
|
||||
default = "";
|
||||
description = ''
|
||||
APN authentication type, one of ${concatMapStringsSep ", " show values} (optional).
|
||||
APN authentication type, one of ${
|
||||
concatMapStringsSep ", " show values
|
||||
} (optional).
|
||||
'';
|
||||
};
|
||||
|
||||
mbimProxy = mkOption {
|
||||
type = types.bool;
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = ''
|
||||
Whether to use the mbim proxy or not.
|
||||
Whether to use the mbim proxy or not.
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -91,8 +92,10 @@ in
|
|||
path = with pkgs; [ libmbim iproute ];
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${mbim-ip-configured}/bin/mbim-ip-configured start ${cfg.networkInterface}";
|
||||
ExecStop = "${mbim-ip-configured}/bin/mbim-ip-configured stop ${cfg.networkInterface}";
|
||||
ExecStart =
|
||||
"${mbim-ip-configured}/bin/mbim-ip-configured start ${cfg.networkInterface}";
|
||||
ExecStop =
|
||||
"${mbim-ip-configured}/bin/mbim-ip-configured stop ${cfg.networkInterface}";
|
||||
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
|
@ -111,8 +114,8 @@ in
|
|||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
Unit = "wwan-check";
|
||||
OnBootSec="2m";
|
||||
OnUnitActiveSec="1m";
|
||||
OnBootSec = "2m";
|
||||
OnUnitActiveSec = "1m";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue