fixup! nixos/minio: activate/restart service on credentials path changes

This commit is contained in:
John Soo 2023-03-16 09:45:09 -07:00
parent 29523c05e4
commit 740fea3edd
No known key found for this signature in database
GPG Key ID: D8A148F8CE4DDBC2

View File

@ -124,8 +124,11 @@ in
}
(lib.mkIf (cfg.rootCredentialsFile != null) {
# The service will fail if the credentials file is missing
services.minio.unitConfig.ConditionPathExists = cfg.rootCredentialsFile;
# The service will not restart if the credentials file has
# been changed. This can cause stale root credentials.
paths.minio-root-credentials = {
wantedBy = [ "multi-user.target" ];