diff options
author | Luke Granger-Brown <git@lukegb.com> | 2021-05-03 17:36:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-03 17:36:46 +0100 |
commit | 049850341e5cb5d551ccc73c0e3ba69892c6c44a (patch) | |
tree | ef02853da32a96d6eeb7f4d4d0d23468bbf4e57e /nixos | |
parent | 4e06e6e00525942140b3d184c32e364de19b8424 (diff) | |
parent | a6fb22a689978e1695d27fc5ebf14ef67786c8f9 (diff) | |
download | nixpkgs-049850341e5cb5d551ccc73c0e3ba69892c6c44a.tar nixpkgs-049850341e5cb5d551ccc73c0e3ba69892c6c44a.tar.gz nixpkgs-049850341e5cb5d551ccc73c0e3ba69892c6c44a.tar.bz2 nixpkgs-049850341e5cb5d551ccc73c0e3ba69892c6c44a.tar.lz nixpkgs-049850341e5cb5d551ccc73c0e3ba69892c6c44a.tar.xz nixpkgs-049850341e5cb5d551ccc73c0e3ba69892c6c44a.tar.zst nixpkgs-049850341e5cb5d551ccc73c0e3ba69892c6c44a.zip |
Merge pull request #121540 from lukegb/postfix-compat
nixos/tests/rspamd: fix OOM flakyness
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/mail/postfix.nix | 2 | ||||
-rw-r--r-- | nixos/tests/rspamd.nix | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/nixos/modules/services/mail/postfix.nix b/nixos/modules/services/mail/postfix.nix index 8e5bed5fcb8..35639e1bbc8 100644 --- a/nixos/modules/services/mail/postfix.nix +++ b/nixos/modules/services/mail/postfix.nix @@ -773,7 +773,7 @@ in }; services.postfix.config = (mapAttrs (_: v: mkDefault v) { - compatibility_level = "9999"; + compatibility_level = pkgs.postfix.version; mail_owner = cfg.user; default_privs = "nobody"; diff --git a/nixos/tests/rspamd.nix b/nixos/tests/rspamd.nix index f0ccfe7ea0e..3fd55444fd8 100644 --- a/nixos/tests/rspamd.nix +++ b/nixos/tests/rspamd.nix @@ -25,6 +25,7 @@ let machine = { services.rspamd.enable = true; networking.enableIPv6 = enableIPv6; + virtualisation.memorySize = 1024; }; testScript = '' start_all() @@ -68,6 +69,7 @@ in group = "rspamd"; }]; }; + virtualisation.memorySize = 1024; }; testScript = '' @@ -116,6 +118,7 @@ in ''; }; }; + virtualisation.memorySize = 1024; }; testScript = '' @@ -221,6 +224,7 @@ in rspamd_logger.infox(rspamd_config, 'Work dammit!!!') ''; }; + virtualisation.memorySize = 1024; }; testScript = '' ${initMachine} @@ -287,6 +291,7 @@ in postfix.enable = true; workers.rspamd_proxy.type = "rspamd_proxy"; }; + virtualisation.memorySize = 1024; }; testScript = '' ${initMachine} |