mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-22 08:04:20 +01:00
Add JMusicBot
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
323b628d95
commit
1db8520840
25
containers/jmusicbot.nix
Normal file
25
containers/jmusicbot.nix
Normal 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}";
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
|
@ -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": {
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue