mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Merge pull request #277783 from gepbird/c2fmzq-server-multiple-freeform-settings
nixos/c2fmzq-server: allow multiple freeform settings
This commit is contained in:
commit
59cefcbc62
2 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,7 @@ let
|
||||||
cfg = config.services.c2fmzq-server;
|
cfg = config.services.c2fmzq-server;
|
||||||
|
|
||||||
argsFormat = {
|
argsFormat = {
|
||||||
type = with lib.types; nullOr (oneOf [ bool int str ]);
|
type = with lib.types; attrsOf (nullOr (oneOf [ bool int str ]));
|
||||||
generate = lib.cli.toGNUCommandLineShell { };
|
generate = lib.cli.toGNUCommandLineShell { };
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|
|
@ -9,6 +9,9 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
||||||
passphraseFile = builtins.toFile "pwfile" "hunter2"; # don't do this on real deployments
|
passphraseFile = builtins.toFile "pwfile" "hunter2"; # don't do this on real deployments
|
||||||
settings = {
|
settings = {
|
||||||
verbose = 3; # debug
|
verbose = 3; # debug
|
||||||
|
# make sure multiple freeform options evaluate
|
||||||
|
allow-new-accounts = true;
|
||||||
|
auto-approve-new-accounts = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
environment = {
|
environment = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue