nixos/dokuwiki: add assertion for usersFile

This commit is contained in:
dadada 2020-03-30 20:50:32 +02:00
parent af6a7a0486
commit 0228046eec
No known key found for this signature in database
GPG Key ID: EEB8D1CE62C4DFEA

View File

@ -278,6 +278,10 @@ in
{
assertion = cfg.usersFile != null -> cfg.aclUse != false;
message = "services.dokuwiki.${hostName}.aclUse must be true when usersFile is not null";
}
{
assertion = cfg.aclUse -> cfg.usersFile != null;
message = "services.dokuwiki.${hostName}.usersFile must be set if aclUse is true";
}]) eachSite);
services.phpfpm.pools = mapAttrs' (hostName: cfg: (