mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-12-02 09:53:49 +03:00
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{ config, lib, ... }:
|
|
with lib;
|
|
{
|
|
options = {
|
|
test = {
|
|
noConnections = mkOption {
|
|
type = types.bool;
|
|
default = !config.test.container.enableWAN;
|
|
description = ''
|
|
Whether services should be configured to not connect to external hosts.
|
|
This can silence some warnings while running the test in an offline environment.
|
|
'';
|
|
};
|
|
data = mkOption {
|
|
type = types.attrs;
|
|
default = {};
|
|
description = ''
|
|
Attrs that are available in the Python test script under the global
|
|
dictionary variable 'test_data'. The data is exported via JSON.
|
|
'';
|
|
};
|
|
|
|
container = {
|
|
# Forwarded to extra-container. For descriptions, see
|
|
# https://github.com/erikarvstedt/extra-container/blob/master/eval-config.nix
|
|
addressPrefix = mkOption { default = "10.225.255"; };
|
|
enableWAN = mkOption { default = false; };
|
|
firewallAllowHost = mkOption { default = true; };
|
|
exposeLocalhost = mkOption { default = false; };
|
|
};
|
|
};
|
|
|
|
tests = mkOption {
|
|
type = with types; attrsOf bool;
|
|
default = {};
|
|
description = "Python tests that should be run.";
|
|
};
|
|
};
|
|
}
|