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 }: