mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-27 11:40:32 +05:00
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:
parent
4e8fbac580
commit
05d963e751
@ -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
|
||||
];
|
||||
|
@ -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
|
||||
];
|
||||
|
@ -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
3
tests/lib/config.nix
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
security.dhparams.defaultBitSize = 16; # really low for quicker tests
|
||||
}
|
Loading…
Reference in New Issue
Block a user