use environmentFile

This commit is contained in:
RoyDumblauskas committed 2025-06-12 19:01:51 -05:00
1 parent 2a83cd5f86
commit 2b1453cd9f
4 files changed
+32 -27

No files matched your search

+3 -4
View File
@@ -37,9 +37,9 @@
description = "MinIO root username.";
};
rootPasswordFile = lib.mkOption {
credentialsFile = lib.mkOption {
type = lib.types.path;
description = "File containing MinIO root password.";
description = "File containing MinIO credentials.";
};
default-nginx = {
@@ -74,8 +74,7 @@
User = "minio";
Group = "minio";
Environment = [
"MINIO_ACCESS_KEY=${opts.rootUser}"
"MINIO_SECRET_KEY_FILE=${opts.rootPasswordFile}"
"environmentFile = ${opts.credentialsFile}"
];
Restart = "always";
};