cluster/containers/jmusicbot.nix
Magic_RB 700ed7317b
Upgrade NixNG and add Minecraft module
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2021-12-12 22:33:44 +01:00

27 lines
515 B
Nix

{ nglib, nixpkgs }:
nglib.makeSystem {
system = "x86_64-linux";
name = "nixng-jmusicbot";
inherit nixpkgs;
config = ({ pkgs, config, nglib, ... }:
{
dumb-init = {
enable = true;
type.services = {};
};
init.services.jmusicbot = {
shutdownOnExit = true;
};
services.jmusicbot = {
enable = true;
config = {
prefix = "sudo";
token = "\${BOT_TOKEN}";
owner = "\${BOT_OWNER}";
};
};
});
}