ahuston-0 b46ab8baa9 fix credentials and listen address
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-06-25 20:21:03 +00:00

25 lines
465 B
Nix

{ config, ... }:
let
base_path = "/ZFS/ZFS-primary/minio";
in
{
services.minio = {
enable = true;
rootCredentialsFile = config.sops.secrets."minio/credentials".path;
listenAddress = ":8500";
dataDir = [ "${base_path}/data" ];
consoleAddress = ":8501";
configDir = "${base_path}/config";
};
sops = {
defaultSopsFile = ./secrets.yaml;
secrets = {
"minio/credentials" = {
owner = "minio";
};
};
};
}