3
0
Fork 0
forked from mirrors/nixpkgs

nixos/tests/minio: fix deprecation warning

The `accessKey` and `secretKey` options have been deprecated in favour
of the new `rootCredentialsFile`.
This commit is contained in:
rnhmjoj 2021-09-22 11:35:22 +02:00
parent 87d76b1783
commit 20ad669618
No known key found for this signature in database
GPG key ID: BFBAF4C975F76450

View file

@ -28,7 +28,10 @@ in {
machine = { pkgs, ... }: {
services.minio = {
enable = true;
inherit accessKey secretKey;
rootCredentialsFile = pkgs.writeText "minio-credentials" ''
MINIO_ROOT_USER=${accessKey}
MINIO_ROOT_PASSWORD=${secretKey}
'';
};
environment.systemPackages = [ pkgs.minio-client ];