add assertions: selfprivacy.sso.enable -> modules.*.enableSso
This commit is contained in:
@@ -9,5 +9,6 @@
|
||||
[ "selfprivacy", "passthru", "auth", "oauth2-provider-name" ],
|
||||
[ "selfprivacy", "passthru", "auth", "oauth2-systemd-service" ],
|
||||
[ "selfprivacy", "passthru", "mailserver", "oauth-client-id" ],
|
||||
[ "selfprivacy", "passthru", "mailserver", "oauth-client-secret-fp" ]
|
||||
[ "selfprivacy", "passthru", "mailserver", "oauth-client-secret-fp" ],
|
||||
[ "selfprivacy", "sso", "enable" ]
|
||||
]
|
||||
|
@@ -57,6 +57,13 @@ in
|
||||
|
||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||
{
|
||||
assertions = [
|
||||
{
|
||||
assertion = cfg.enableSso -> config.selfprivacy.sso.enable;
|
||||
message =
|
||||
"SSO cannot be enabled for Roundcube when SSO is disabled globally.";
|
||||
}
|
||||
];
|
||||
services.roundcube = {
|
||||
enable = true;
|
||||
# this is the url of the vhost, not necessarily the same as the fqdn of
|
||||
|
Reference in New Issue
Block a user