{ nglib, nixpkgs }: nglib.makeSystem { system = "x86_64-linux"; name = "nixng-gitea"; inherit nixpkgs; config = ({ pkgs, ... }: { dumb-init = { enable = true; type.services = { }; }; init.services.mautrix-facebook = { enabled = true; shutdownOnExit = true; script = let config = ./mautrix-facebook.yaml; in pkgs.writeShellScript "mautrix-facebook" '' ${pkgs.mautrix-facebook}/bin/mautrix-facebook -c ${config} -r $NOMAD_ALLOC_DIR/registration.yaml -g -n ${pkgs.mautrix-facebook}/bin/mautrix-facebook -c ${config} -n ''; }; }); }