feat: reorganize to one flake one rust project

This commit is contained in:
Jet 2026-03-18 17:33:57 -07:00
parent 5183130427
commit e8b60519e7
No known key found for this signature in database
23 changed files with 792 additions and 2144 deletions

View file

@ -33,6 +33,17 @@ in
type = lib.types.path;
description = "Path to file containing the webhook secret.";
};
imageBaseUrl = lib.mkOption {
type = lib.types.str;
default = "https://noisebell.extremist.software/image";
description = "Base URL for status images used in Discord embeds.";
};
cacheUrl = lib.mkOption {
type = lib.types.str;
description = "URL of the cache service for slash commands (e.g. http://localhost:3000).";
};
};
config = lib.mkIf cfg.enable {
@ -54,6 +65,8 @@ in
environment = {
NOISEBELL_DISCORD_PORT = toString cfg.port;
NOISEBELL_DISCORD_CHANNEL_ID = cfg.channelId;
NOISEBELL_DISCORD_IMAGE_BASE_URL = cfg.imageBaseUrl;
NOISEBELL_DISCORD_CACHE_URL = cfg.cacheUrl;
RUST_LOG = "info";
};
script = ''