configurable honeypot toggle

This commit is contained in:
Lewis Wynne 2026-04-09 14:46:40 +01:00
parent 5bfba1b6ff
commit c3ceb39b71
3 changed files with 12 additions and 1 deletions

View file

@ -45,6 +45,12 @@ in
description = "Path to a file containing the Telegram bot token.";
};
honeypot = mkOption {
type = types.bool;
default = true;
description = "Enable honeypot field for spam prevention.";
};
user = mkOption {
type = types.str;
default = "guestbook";
@ -80,6 +86,7 @@ in
BOOK_SITE_TITLE = cfg.siteTitle;
BOOK_SITE_URL = cfg.siteUrl;
BOOK_TELEGRAM_CHAT_ID = toString cfg.telegramChatId;
BOOK_HONEYPOT = if cfg.honeypot then "true" else "false";
};
serviceConfig = {
Type = "simple";