hydrogen: +hoot

This commit is contained in:
Primrose 2024-08-19 01:11:59 +02:00
parent 10933a56d2
commit d24e098888
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
14 changed files with 212 additions and 24 deletions

View file

@ -1,4 +1,4 @@
{ modulesPath, ... }:
{ config, modulesPath, ... }:
{
imports = [
@ -19,4 +19,15 @@
host all all 10.0.0.1/23 trust
'';
};
# hoot, the discord bot
services.hoot.enable = true;
services.hoot.environmentFile = config.age.secrets.hoot_token.path;
services.hoot.configDir = "/var/hoot";
age.secrets.hoot_token = {
owner = "hoot";
mode = "600";
file = ../../secrets/hoot_token.age;
};
}