misc_nixos-mailserver/docs
emilylange 6ef1eb9ce1
assertions: fix eval error when mailserver.stateVersion is unset (null)
Eval does not stop on the first assertion failure it encouters.
Instead, it tries to evaluate all assertions and returns with a list of
those that failed.

This means our very top `config.mailserver.stateVersion != null`
assertion does not gate against any other assertions trying to compare
null against an integer.

The error prior to this commit can be reproduced by removing
`mailserver.stateVersion = 999;` in tests/lib/config.nix and then trying
to evaluate any of the tests:

~~~bash
# nix eval --raw .#checks.x86_64-linux.internal-unstable
error:
       … while evaluating the attribute 'outPath'
         at /nix/store/syvnmj3hhckkbncm94kfkbl76qsdqqj3-source/lib/customisation.nix:421:7:
          420|         drv.drvPath;
          421|       outPath =
             |       ^
          422|         assert condition;

       … while calling the 'getAttr' builtin
         at «internal»:1:500:
       (stack trace truncated; use '--show-trace' to show the full trace)

       error: cannot compare null with an integer
~~~
2025-06-21 20:15:46 +02:00
..
add-radicale.rst docs: use settings instead of config in radicale 2024-05-03 09:14:16 +02:00
add-roundcube.rst Update roundcube example configuration: smtp_server is deprecated 2024-01-31 17:08:06 -06:00
advanced-configurations.rst Suggest that folks enable DMARC reporting 2025-05-08 13:12:43 -07:00
autodiscovery.rst docs: add submissions DNS record for autodiscovery 2023-05-29 15:09:08 +02:00
backup-guide.rst mention spam and ham training data in backup guide 2025-06-06 12:00:00 +00:00
conf.py treewide: reformat python code 2025-05-15 16:29:04 +02:00
faq.rst doc: add a FAQ section 2021-03-03 08:36:08 +00:00
flakes.rst docs: migrate wiki references to wiki.nixos.org 2025-05-15 16:29:05 +02:00
fts.rst dovecot/fts: switch to fts-flatcurve 2025-05-19 16:45:09 +02:00
howto-develop.rst assertions: fix eval error when mailserver.stateVersion is unset (null) 2025-06-21 20:15:46 +02:00
index.rst Merge branch 'suggest-dmarc' into 'master' 2025-06-15 23:15:19 +00:00
ldap.rst ldap: add an entry in the doc 2023-07-11 19:31:20 +00:00
logo.png Move the logo 2021-07-27 19:58:33 +00:00
Makefile docs: add missing Sphinx Makefile:/ 2020-10-31 08:34:36 +01:00
migrations.rst dovecot: migrate to dedicated homedir and separate maildir paths 2025-06-21 09:46:32 +02:00
release-notes.rst Reformat release notes 2025-05-21 00:58:06 +02:00
requirements.txt Fix the RTD build 2025-05-05 20:22:45 +02:00
rspamd-tuning.rst Wrap rspamc to avoid having to specific socket manually 2024-08-05 19:00:00 +02:00
setup-guide.rst dovecot: migrate to dedicated homedir and separate maildir paths 2025-06-21 09:46:32 +02:00