diff --git a/modules/clan/phonebox/default.nix b/modules/clan/phonebox/default.nix index 364ce47..e8fbfe4 100644 --- a/modules/clan/phonebox/default.nix +++ b/modules/clan/phonebox/default.nix @@ -78,6 +78,23 @@ }"; }) machines; + createContactListTiff = + let + contactTXT = lib.concatStringsSep "\n" ( + builtins.map (contact: "${contact.name}: ${contact.number}") contactList + ); + in + output: + pkgs.writeShellApplication { + name = "get-contact-tiff"; + text = '' + magick -background white -fill black \ + -pointsize 20 -font DejaVu-Sans \ + label:"${contactTXT}" \ + ${output}''; + runtimeInputs = [ pkgs.imagemagick ]; + }; + genServerSIPEndpoint = { hostname, address }: ''