nixos/c2fmzq-server: allow multiple freeform settings

This commit is contained in:
Gutyina Gergő 2023-12-30 20:45:51 +01:00
parent 91a00709ae
commit 3306755683
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View file

@ -6,7 +6,7 @@ let
cfg = config.services.c2fmzq-server;
argsFormat = {
type = with lib.types; nullOr (oneOf [ bool int str ]);
type = with lib.types; attrsOf (nullOr (oneOf [ bool int str ]));
generate = lib.cli.toGNUCommandLineShell { };
};
in {

View file

@ -9,6 +9,9 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
passphraseFile = builtins.toFile "pwfile" "hunter2"; # don't do this on real deployments
settings = {
verbose = 3; # debug
# make sure multiple freeform options evaluate
allow-new-accounts = true;
auto-approve-new-accounts = true;
};
};
environment = {