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" ];
|
manifest.categories = [ "System" ];
|
||||||
|
|
||||||
roles.default = {
|
roles.default = {
|
||||||
|
interface =
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
options.ata-ethernet-iface = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
description = "An Ethernet interface that connect to ATA box.";
|
||||||
|
};
|
||||||
|
};
|
||||||
perInstance =
|
perInstance =
|
||||||
{
|
{
|
||||||
instanceName,
|
|
||||||
roles,
|
roles,
|
||||||
|
settings,
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
nixosModule =
|
nixosModule =
|
||||||
@@ -20,9 +28,9 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
user = "asterisk";
|
user = "asterisk";
|
||||||
ata-interface = "";
|
|
||||||
rtpPortFrom = 10000;
|
rtpPortFrom = 10000;
|
||||||
rtpPortTo = 20000;
|
rtpPortTo = 20000;
|
||||||
|
ata-interface = settings.ata-ethernet-iface;
|
||||||
|
|
||||||
genServerSIPEndpoint =
|
genServerSIPEndpoint =
|
||||||
{ hostname, address }:
|
{ hostname, address }:
|
||||||
|
|||||||
Reference in New Issue
Block a user