nixos/dovecot: add marker to indicate new systemd unit name

This is a helper to escape infinite recursion when trying to check
whether the unit name is set before setting options on it.
This commit is contained in:
Martin Weinelt
2025-07-06 23:58:15 +02:00
parent 6403717045
commit fa949a7b18
+14
View File
@@ -296,6 +296,20 @@ in
enableLmtp = mkEnableOption "starting the LMTP listener (when Dovecot is enabled)";
hasNewUnitName = mkOption {
type = types.bool;
default = true;
readOnly = true;
internal = true;
description = ''
Inspectable option to confirm that the dovecot module uses the new
`dovecot.service` name, instead of `dovecot2.service`.
This is a helper added for the nixos-mailserver project and can be
removed after branching off nixos-25.11.
'';
};
protocols = mkOption {
type = types.listOf types.str;
default = [ ];