nix/package/privatebin/Config.nix

48 lines
1,003 B
Nix
Raw Normal View History

{
2024-11-04 04:37:29 +03:00
config,
pkgs,
util,
...
}: {
file = (pkgs.formats.ini { }).generate "PrivateBinConfig" {
main = {
compression = "none";
defaultformatter = "plaintext";
discussion = false;
email = true;
fileupload = false;
languageselection = false;
name = "voronind pastebin";
password = true;
qrcode = true;
sizelimit = 10 * 1000 * 1000;
template = "bootstrap-dark-compact";
};
expire = {
default = "1week";
};
formatter_options = {
markdown = "Markdown";
plaintext = "Plain Text";
syntaxhighlighting = "Source Code";
};
traffic = {
limit = 10;
};
purge = {
limit = 0;
batchsize = 10;
};
model = {
class = "Database";
};
model_options = {
"opt[12]" = true;
dsn = "pgsql:host=${config.container.module.postgres.address};dbname=privatebin";
pwd = "privatebin";
tbl = "privatebin_";
usr = "privatebin";
};
};
}