Add JMusicBot

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2021-08-31 23:33:50 +02:00
parent 323b628d95
commit 1db8520840
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
3 changed files with 29 additions and 3 deletions

25
containers/jmusicbot.nix Normal file
View file

@ -0,0 +1,25 @@
nglib:
(nglib "x86_64-linux").makeSystem {
system = "x86_64-linux";
name = "nixng-jmusicbot";
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}";
};
};
});
}

View file

@ -55,11 +55,11 @@
]
},
"locked": {
"lastModified": 1629067771,
"narHash": "sha256-p7o6Zem9r3KLTHgJ+zZTWG2e7JrLiLT3jsdpv4T8IAA=",
"lastModified": 1630445254,
"narHash": "sha256-+BnHazNZ+jVAY4AQI5784kkFidMxfiGatY3ZH9gjkQM=",
"owner": "MagicRB",
"repo": "NixNG",
"rev": "36e5192db7de929474edde479f9f7ea6230a855e",
"rev": "0f2e6e88f26ff31429f17b96b53d6e80b8280d70",
"type": "github"
},
"original": {

View file

@ -24,6 +24,7 @@
hydraPostgresql = (import ./containers/hydra.nix nixng.lib).postgresql;
ingress = (import ./containers/ingress.nix nixng.lib);
website = (import ./containers/website.nix inputs.website.website nixng.lib);
jmusicbot = (import ./containers/jmusicbot.nix nixng.lib);
};
in
{