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:
@@ -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 = [ ];
|
||||
|
||||
Reference in New Issue
Block a user