Privatebin: Fix config string generation.

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

View file

@ -1,10 +1,15 @@
{ {
config, config,
pkgs, pkgs,
lib,
util, util,
... ...
}: { }: {
file = (pkgs.formats.ini { }).generate "PrivateBinConfig" { file = (pkgs.formats.ini {
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";