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