32 lines
638 B
Nix
32 lines
638 B
Nix
{
|
|
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;
|
|
};
|
|
};
|
|
}
|