cluster/containers/mautrix-facebook.nix
Magic_RB ce22f58d38
wip!!!!!!
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2022-09-19 15:20:12 +02:00

28 lines
704 B
Nix

{ 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
'';
};
});
}