Privatebin: Set theme to bootstrap.

This commit is contained in:
Dmitry Voronin 2024-11-06 12:56:58 +03:00
parent 84380ecf17
commit 2a9e12a437
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -4,12 +4,8 @@
lib, lib,
util, util,
... ...
}: { }: let
file = (pkgs.formats.ini { cfg = {
mkKeyValue = with lib.generators; mkKeyValueDefault {
mkValueString = v: if builtins.isString v then "\"${toString v}\"" else toString v;
} " = ";
}).generate "PrivateBinConfig" {
main = { main = {
compression = "none"; compression = "none";
defaultformatter = "plaintext"; defaultformatter = "plaintext";
@ -21,7 +17,7 @@
password = true; password = true;
qrcode = true; qrcode = true;
sizelimit = 10 * 1000 * 1000; sizelimit = 10 * 1000 * 1000;
template = "bootstrap-dark-compact"; template = "bootstrap";
}; };
expire = { expire = {
default = "1week"; default = "1week";
@ -49,4 +45,10 @@
usr = "privatebin"; usr = "privatebin";
}; };
}; };
in {
file = (pkgs.formats.ini {
mkKeyValue = with lib.generators; mkKeyValueDefault {
mkValueString = v: if builtins.isString v then "\"${toString v}\"" else toString v;
} " = ";
}).generate "PrivateBinConfig" cfg;
} }