lower dhparam bits, for faster tests

Make a tests/lib/config.nix file that is imported into the configuration
of all testing VMs.
This commit is contained in:
Joey Hewitt 2019-06-30 02:43:29 -06:00
parent 4e8fbac580
commit 05d963e751
4 changed files with 13 additions and 0 deletions

View file

@ -34,6 +34,7 @@ import <nixpkgs/nixos/tests/make-test.nix> {
{
imports = [
../default.nix
./lib/config.nix
];
virtualisation.memorySize = 1500;
@ -103,6 +104,10 @@ import <nixpkgs/nixos/tests/make-test.nix> {
exec grep '${clientIP}' "$@"
'';
in {
imports = [
./lib/config.nix
];
environment.systemPackages = with pkgs; [
fetchmail msmtp procmail findutils grep-ip
];

View file

@ -21,6 +21,7 @@ import <nixpkgs/nixos/tests/make-test.nix> {
{
imports = [
../default.nix
./lib/config.nix
];
services.rsyslogd = {
@ -134,6 +135,9 @@ import <nixpkgs/nixos/tests/make-test.nix> {
imap.close()
'';
in {
imports = [
./lib/config.nix
];
environment.systemPackages = with pkgs; [
fetchmail msmtp procmail findutils grep-ip check-mail-id test-imap-spam test-imap-ham
];

View file

@ -21,6 +21,7 @@ import <nixpkgs/nixos/tests/make-test.nix> {
{
imports = [
./../default.nix
./lib/config.nix
];
mailserver = {

3
tests/lib/config.nix Normal file
View file

@ -0,0 +1,3 @@
{
security.dhparams.defaultBitSize = 16; # really low for quicker tests
}