From bfaab9b1e7b48886246c5cb2ede36d2fee537fab Mon Sep 17 00:00:00 2001 From: kurogeek Date: Wed, 24 Dec 2025 17:02:01 +0700 Subject: [PATCH] mob next [ci-skip] [ci skip] [skip ci] lastFile:modules/clan/phonebox/default.nix --- modules/clan/phonebox/default.nix | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/modules/clan/phonebox/default.nix b/modules/clan/phonebox/default.nix index 46ac787..97d0f92 100644 --- a/modules/clan/phonebox/default.nix +++ b/modules/clan/phonebox/default.nix @@ -24,9 +24,14 @@ { roles, settings, + mkExports, ... }: { + exports = mkExports { + default.host.ownerName = "hello"; + }; + nixosModule = { lib, @@ -45,7 +50,27 @@ rtpPortTo = 20000; ata-interface = settings.ata-ethernet-iface; - getContactListBin = pkgs.writeShellScript + contactList = machineName: { + # name = "${config.clan.core.vars.generators.phonebox.files.}"; + number = "${ + (clanLib.getPublicValue { + flake = config.clan.core.settings.directory; + machine = machineName; + generator = "phonebox"; + file = "server-prefix-number"; + default = null; + }) + ( + clanLib.getPublicValue { + flake = config.clan.core.settings.directory; + machine = machineName; + generator = "phonebox"; + file = "ata-local-number"; + default = null; + } + ) + }"; + }; genServerSIPEndpoint = { hostname, address }: