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:
parent
87d76b1783
commit
20ad669618
|
@ -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 ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue