[skip ci] feat: added teh logging bot
This commit is contained in:
parent
4061e143f0
commit
4b3cf6c22e
6 changed files with 244 additions and 86 deletions
32
applications/discord_t-800.nix
Normal file
32
applications/discord_t-800.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
name = "discord_bot_t-800";
|
||||
cfg = config.services.skynet."${name}";
|
||||
in {
|
||||
imports = [
|
||||
inputs.skynet_discord_bot_t-800.nixosModule."x86_64-linux"
|
||||
];
|
||||
|
||||
options.services.skynet."${name}" = {
|
||||
enable = mkEnableOption "Logging Bot";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
#backups = [ "/etc/silver_ul_ical/database.db" ];
|
||||
|
||||
age.secrets.discord_t-800_details.file = ../secrets/discord/t-800.age;
|
||||
|
||||
# this is what was imported
|
||||
services.skynet_discord_bot_t-800 = {
|
||||
enable = true;
|
||||
|
||||
env = config.age.secrets.discord_t-800_details.path;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue