rename wwan-related modules/services

we only currently support huawei e3372/cdc ncm so let's make that
explicit in the naming
This commit is contained in:
Daniel Barlow 2024-07-14 11:53:45 +01:00
parent d34919766a
commit 73ae7788b9
3 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ in rec {
}; };
imports = [ imports = [
../modules/cdc-ncm ../modules/wwan
../modules/network ../modules/network
../modules/vlan ../modules/vlan
../modules/ssh ../modules/ssh
@ -50,7 +50,7 @@ in rec {
]; ];
hostname = "thing"; hostname = "thing";
services.wwan = svc.wwan.build { services.wwan = svc.wwan.huawei-e3372.build {
apn = "data.uk"; apn = "data.uk";
username = "user"; username = "user";
password = "one2one"; password = "one2one";

View File

@ -8,7 +8,7 @@ in {
]; ];
options = { options = {
system.service.wwan = mkOption { system.service.wwan.huawei-e3372 = mkOption {
type = liminix.lib.types.serviceDefn; type = liminix.lib.types.serviceDefn;
}; };
}; };
@ -21,7 +21,7 @@ in {
}; };
# https://www.0xf8.org/2017/01/flashing-a-huawei-e3372h-4g-lte-stick-from-hilink-to-stick-mode/ # https://www.0xf8.org/2017/01/flashing-a-huawei-e3372h-4g-lte-stick-from-hilink-to-stick-mode/
system.service.wwan = config.system.callService ./wwan.nix { system.service.wwan.huawei-e3372 = config.system.callService ./huawei-e3372.nix {
apn = mkOption { type = types.str; }; apn = mkOption { type = types.str; };
username = mkOption { type = types.str; }; username = mkOption { type = types.str; };
password = mkOption { type = types.str; }; password = mkOption { type = types.str; };