Privatebin: Fix config string generation.
This commit is contained in:
parent
db169704b0
commit
84380ecf17
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue