use environmentFile

This commit is contained in:
2025-06-12 19:01:51 -05:00
parent 2a83cd5f86
commit 2b1453cd9f
4 changed files with 32 additions and 27 deletions
+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";
};