about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2021-09-22 11:35:22 +0200
committerrnhmjoj <rnhmjoj@inventati.org>2021-09-22 11:35:22 +0200
commit20ad669618616588089013e48a0b9d61aea09611 (patch)
tree268d3dddeaf07ca0a3c675a8e6484bb13ebbcc5f /nixos
parent87d76b1783f5c34c2402a8d9c635341e011df220 (diff)
downloadnixlib-20ad669618616588089013e48a0b9d61aea09611.tar
nixlib-20ad669618616588089013e48a0b9d61aea09611.tar.gz
nixlib-20ad669618616588089013e48a0b9d61aea09611.tar.bz2
nixlib-20ad669618616588089013e48a0b9d61aea09611.tar.lz
nixlib-20ad669618616588089013e48a0b9d61aea09611.tar.xz
nixlib-20ad669618616588089013e48a0b9d61aea09611.tar.zst
nixlib-20ad669618616588089013e48a0b9d61aea09611.zip
nixos/tests/minio: fix deprecation warning
The `accessKey` and `secretKey` options have been deprecated in favour
of the new `rootCredentialsFile`.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/minio.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/tests/minio.nix b/nixos/tests/minio.nix
index e49c517098ae..ad51f738d490 100644
--- a/nixos/tests/minio.nix
+++ b/nixos/tests/minio.nix
@@ -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 ];