Skip to content

Commit

Permalink
yay
Browse files Browse the repository at this point in the history
  • Loading branch information
Brawl345 committed Sep 7, 2024
1 parent 7cf311f commit 6b57c75
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,22 @@ in
MYSQL_PORT = toString cfg.database.port;
MYSQL_USER = cfg.database.user;
MYSQL_DB = cfg.database.name;
PRINT_MSGS = if cfg.printMsgs then "true" else "";
DEBUG = if cfg.debug then "true" else "";
PRETTY_PRINT_LOG = if cfg.prettyPrintLog then "true" else "";
}
(mkIf cfg.useWebhook {
PORT = toString cfg.port;
WEBHOOK_PUBLIC_URL = cfg.webhookPublicUrl;
WEBHOOK_URL_PATH = cfg.webhookUrlPath;
WEBHOOK_SECRET = optionalString (cfg.webhookSecret != null) cfg.webhookSecret;
})
(mkIf cfg.printMsgs {
PRINT_MSGS = "true";
})
(mkIf cfg.debug {
DEBUG = "true";
})
(mkIf cfg.prettyPrintLog {
PRETTY_PRINT_LOG = "true";
})
];
};

Expand Down

0 comments on commit 6b57c75

Please sign in to comment.