diff options
author | dadada <dadada@dadada.li> | 2020-03-30 20:50:32 +0200 |
---|---|---|
committer | dadada <dadada@dadada.li> | 2020-04-18 23:37:18 +0200 |
commit | 0228046eec7ce930d6532e205ad92435a2983f98 (patch) | |
tree | 129577a288f4631125cf9969ef4ff5f5613ecc74 | |
parent | af6a7a04869889b470c4dad6e0adc57482818d3a (diff) | |
download | nixlib-0228046eec7ce930d6532e205ad92435a2983f98.tar nixlib-0228046eec7ce930d6532e205ad92435a2983f98.tar.gz nixlib-0228046eec7ce930d6532e205ad92435a2983f98.tar.bz2 nixlib-0228046eec7ce930d6532e205ad92435a2983f98.tar.lz nixlib-0228046eec7ce930d6532e205ad92435a2983f98.tar.xz nixlib-0228046eec7ce930d6532e205ad92435a2983f98.tar.zst nixlib-0228046eec7ce930d6532e205ad92435a2983f98.zip |
nixos/dokuwiki: add assertion for usersFile
-rw-r--r-- | nixos/modules/services/web-apps/dokuwiki.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/dokuwiki.nix b/nixos/modules/services/web-apps/dokuwiki.nix index 7587c744ad51..fa7462a97bdb 100644 --- a/nixos/modules/services/web-apps/dokuwiki.nix +++ b/nixos/modules/services/web-apps/dokuwiki.nix @@ -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: ( |