From 84380ecf178f0511df9a256248515f754be5a58d Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Wed, 6 Nov 2024 12:50:27 +0300 Subject: [PATCH] Privatebin: Fix config string generation. --- package/privatebin/Config.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/privatebin/Config.nix b/package/privatebin/Config.nix index 46636e5e..04182e2b 100644 --- a/package/privatebin/Config.nix +++ b/package/privatebin/Config.nix @@ -1,10 +1,15 @@ { config, pkgs, + lib, 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 = { compression = "none"; defaultformatter = "plaintext";