3
0
Fork 0
forked from mirrors/nixpkgs

nixos/magnetico: fixes

This commit is contained in:
rnhmjoj 2019-10-26 10:56:17 +02:00
parent 577d159ece
commit dda2f6415f
No known key found for this signature in database
GPG key ID: BFBAF4C975F76450

View file

@ -35,6 +35,7 @@ let
(if (cfg.web.credentialsFile != null || cfg.web.credentials != { })
then "--credentials=${toString credFile}"
else "--no-auth")
"--addr=${address}:${toString port}"
] ++ extraOptions);
in {
@ -202,7 +203,7 @@ in {
assertions =
[
{
assertion = cfg.web.credentialsFile != null || cfg.web.credentials != { };
assertion = cfg.web.credentialsFile == null || cfg.web.credentials == { };
message = ''
The options services.magnetico.web.credentialsFile and
services.magnetico.web.credentials are mutually exclusives.