From aa107a60c498df364942e4ff7759082eec821224 Mon Sep 17 00:00:00 2001 From: euxane Date: Wed, 15 May 2024 00:45:21 +0200 Subject: [PATCH] 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. --- nixos/tests/stalwart-mail.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/nixos/tests/stalwart-mail.nix b/nixos/tests/stalwart-mail.nix index 634c0e2e3926..581090cd70f4 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";