about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authoreuxane <euxane.trangirard@pacien.net>2024-05-15 00:45:21 +0200
committereuxane <euxane.trangirard@pacien.net>2024-05-15 00:45:21 +0200
commitaa107a60c498df364942e4ff7759082eec821224 (patch)
treed2faada3fa93d676838e8beece51a6db5c0aa435 /nixos
parentf4c5060ecc3367c71265fa5f3410e51a4b4a260e (diff)
nixos/stalwart-mail: fix vm test for v0.6.0
This migrates the syntax for a few configuration values,
which now need to be quoted strings for user values.

This also disables the use of a public resolver,
which is not accessible in the sandbox.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/stalwart-mail.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/nixos/tests/stalwart-mail.nix b/nixos/tests/stalwart-mail.nix
index 634c0e2e39261..581090cd70f48 100644
--- a/nixos/tests/stalwart-mail.nix
+++ b/nixos/tests/stalwart-mail.nix
@@ -40,12 +40,14 @@ in import ./make-test-python.nix ({ lib, ... }: {
           };
         };
 
-        session.auth.mechanisms = [ "PLAIN" ];
-        session.auth.directory = "in-memory";
-        storage.directory = "in-memory";  # shared with imap
+        resolver.public-suffix = [ ];  # do not fetch from web in sandbox
 
-        session.rcpt.directory = "in-memory";
-        queue.outbound.next-hop = [ "local" ];
+        session.auth.mechanisms = "[plain]";
+        session.auth.directory = "'in-memory'";
+        storage.directory = "in-memory";
+
+        session.rcpt.directory = "'in-memory'";
+        queue.outbound.next-hop = "'local'";
 
         directory."in-memory" = {
           type = "memory";