nix/package/privatebin/Config.nix
2024-11-06 01:07:30 +03:00

48 lines
1,003 B
Nix

{
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";
};
};
}