Unverified Commit 740fea3e authored by John Soo's avatar John Soo
Browse files

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

parent 29523c05
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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" ];