mob next [ci-skip] [ci skip] [skip ci]
lastFile:modules/clan/phonebox/default.nix
This commit is contained in:
@@ -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 }:
|
||||
|
||||
Reference in New Issue
Block a user