mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-22 08:04:20 +01:00
700ed7317b
Signed-off-by: Magic_RB <magic_rb@redalder.org>
27 lines
515 B
Nix
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}";
|
|
};
|
|
};
|
|
});
|
|
}
|