mob next [ci-skip] [ci skip] [skip ci]

lastFile:modules/clan/phonebox/default.nix
This commit is contained in:
2025-12-26 16:19:36 +07:00
parent aa5c436d98
commit 7e84b4b349

View File

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