mob next [ci-skip] [ci skip] [skip ci]

lastFile:modules/clan/phonebox/default.nix
This commit is contained in:
2025-10-30 15:34:57 +07:00
parent 336ee6371d
commit d9838e6979

View File

@@ -6,10 +6,18 @@
manifest.categories = [ "System" ];
roles.default = {
interface =
{ lib, ... }:
{
options.ata-ethernet-iface = lib.mkOption {
type = lib.types.str;
description = "An Ethernet interface that connect to ATA box.";
};
};
perInstance =
{
instanceName,
roles,
settings,
}:
{
nixosModule =
@@ -20,9 +28,9 @@
}:
let
user = "asterisk";
ata-interface = "";
rtpPortFrom = 10000;
rtpPortTo = 20000;
ata-interface = settings.ata-ethernet-iface;
genServerSIPEndpoint =
{ hostname, address }: