snowflake/hosts/kaze/services/minio.nix

28 lines
602 B
Nix
Raw Normal View History

2024-01-05 11:12:11 -05:00
{
config,
pkgs,
...
}: {
environment.systemPackages = [pkgs.minio-client];
2024-01-22 07:51:46 -05:00
systemd.services.minio.environment = {
MINIO_BROWSER_REDIRECT = "false";
};
2024-01-05 11:12:11 -05:00
sops.secrets.minio = {
owner = "minio";
group = "minio";
mode = "0600";
restartUnits = ["minio.service"];
};
services.minio = {
enable = true;
region = "us-east-1";
2024-01-05 12:48:57 -05:00
consoleAddress = "100.69.79.81:9006";
listenAddress = "100.69.79.81:9005";
2024-01-05 11:12:11 -05:00
rootCredentialsFile = config.sops.secrets.minio.path;
2024-01-05 12:48:57 -05:00
dataDir = ["/var/lib/slab/minio/data"];
configDir = "/var/lib/slab/minio/config";
2024-01-05 11:12:11 -05:00
};
}