1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

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: (