snowflake/hosts/kaze/services/minio.nix

29 lines
648 B
Nix
Raw Normal View History

2024-02-08 12:04:15 -05:00
{ config, pkgs, ... }:
2024-01-05 11:12:11 -05:00
{
2024-02-08 12:04:15 -05:00
environment.systemPackages = [ pkgs.minio-client ];
2024-01-22 07:51:46 -05:00
2024-02-08 12:04:15 -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";
2024-02-08 12:04:15 -05:00
restartUnits = [ "minio.service" ];
2024-01-05 11:12:11 -05:00
};
2024-02-08 12:04:15 -05:00
services.minio =
let
dataDir = "/var/lib/slab/minio";
in
{
enable = true;
region = "us-east-1";
consoleAddress = "0.0.0.0:9006";
listenAddress = "0.0.0.0:9005";
rootCredentialsFile = config.sops.secrets.minio.path;
dataDir = [ "${dataDir}/data" ];
configDir = "${dataDir}/config";
};
2024-01-05 11:12:11 -05:00
}