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