nixos-config/hosts/falkenstein/modules/trucksimulatorbot/default.nix

28 lines
591 B
Nix
Raw Normal View History

2024-03-25 20:35:26 +01:00
{ config, pkgs, ... }:
2023-04-16 16:56:24 +02:00
let
2024-03-09 13:26:49 +01:00
domain = "trucks.${config.networking.domain}";
2023-04-16 16:56:24 +02:00
in
{
services.trucksimulatorbot = {
2024-03-25 20:35:26 +01:00
inherit domain;
2023-05-29 13:31:20 +02:00
enable = true;
discord = {
clientId = "831052837353816066";
publicKey = "faa7004a2a5096702f96f3ebeb45c7e8272c119b72c1a0894abc4d76d8cc8bad";
};
};
services.mysql = {
enable = true;
package = pkgs.mariadb;
ensureUsers = [
{
name = "trucksimulator";
ensurePermissions = {
"trucksimulator.*" = "ALL PRIVILEGES";
};
}
];
ensureDatabases = [ "trucksimulator" ];
2023-04-16 16:56:24 +02:00
};
}