2022-05-26 16:40:49 +02:00
|
|
|
{ config, pkgs, deployment, ... }: {
|
2022-05-21 21:59:14 +02:00
|
|
|
imports = [ ../../common ../../common/lxc.nix ];
|
|
|
|
networking.hostName = "minio";
|
|
|
|
system.stateVersion = "21.11";
|
|
|
|
|
|
|
|
networking.firewall.enable = false;
|
|
|
|
networking.firewall.allowedTCPPorts = [ 9000 9001 ];
|
|
|
|
|
|
|
|
services.minio = {
|
|
|
|
enable = true;
|
|
|
|
rootCredentialsFile = "/var/lib/keys/minioSettings";
|
|
|
|
};
|
2022-05-26 16:40:49 +02:00
|
|
|
deployment.keys."minioSettings" = {
|
|
|
|
keyCommand = [ "vault" "kv" "get" "-field=settings" "kv/minio" ];
|
|
|
|
destDir = "/var/lib/keys";
|
|
|
|
user = "minio";
|
|
|
|
group = "minio";
|
|
|
|
};
|
2022-05-21 21:59:14 +02:00
|
|
|
}
|