mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-26 01:56:13 +01:00
ce22f58d38
Signed-off-by: Magic_RB <magic_rb@redalder.org>
28 lines
704 B
Nix
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
|
|
'';
|
|
};
|
|
});
|
|
}
|