aboutsummaryrefslogtreecommitdiffstats
path: root/tests/by-name/st/stalwart-email-http/nodes/user.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-02 00:27:50 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-02 00:27:50 +0200
commit82d1dc4549f3ba079505b6ebaa266e6d04d1cce4 (patch)
tree2377a080b1946b921f85fbc42c2a9385446760d7 /tests/by-name/st/stalwart-email-http/nodes/user.nix
parentpkgs/fetchmail-common-name: Update patch, so that it applies again (diff)
downloadnixos-server-82d1dc4549f3ba079505b6ebaa266e6d04d1cce4.zip
tests/email/*: Rename to stalwart email tests
These tests explicitly test our stalwart email module.
Diffstat (limited to 'tests/by-name/st/stalwart-email-http/nodes/user.nix')
-rw-r--r--tests/by-name/st/stalwart-email-http/nodes/user.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/by-name/st/stalwart-email-http/nodes/user.nix b/tests/by-name/st/stalwart-email-http/nodes/user.nix
new file mode 100644
index 0000000..73b9ff7
--- /dev/null
+++ b/tests/by-name/st/stalwart-email-http/nodes/user.nix
@@ -0,0 +1,26 @@
+{
+ pkgs,
+ vhackPackages,
+}: {
+ mkUser = user: serverName: {
+ nodes,
+ lib,
+ ...
+ }: {
+ imports = [
+ ../../../../common/acme/client.nix
+ ];
+
+ environment.systemPackages = [
+ pkgs.bind
+ pkgs.openssl
+ ];
+
+ networking.nameservers = lib.mkForce [
+ nodes.name_server.networking.primaryIPAddress
+ nodes.name_server.networking.primaryIPv6Address
+ ];
+
+ users.users."${user}" = {isNormalUser = true;};
+ };
+}