From 7e84b4b34928b0a176ac68b0d6323ea5fa7ccf16 Mon Sep 17 00:00:00 2001 From: kurogeek Date: Fri, 26 Dec 2025 16:19:36 +0700 Subject: [PATCH] mob next [ci-skip] [ci skip] [skip ci] lastFile:modules/clan/phonebox/default.nix --- modules/clan/phonebox/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 }: ''