Merge pull request #277783 from gepbird/c2fmzq-server-multiple-freeform-settings

nixos/c2fmzq-server: allow multiple freeform settings
This commit is contained in:
Peder Bergebakken Sundt 2024-01-13 22:01:23 +01:00 committed by GitHub
commit 59cefcbc62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 = {