nixos-config/modules/minio/default.nix
2023-01-06 00:11:11 +01:00

20 lines
451 B
Nix

{ config, lib, ... }:
with lib;
let
cfg = config.eboskma.services.minio;
in
{
options.eboskma.services.minio = { enable = mkEnableOption "minio"; };
config = mkIf cfg.enable {
services.minio = {
enable = true;
dataDir = [ "/data" ];
browser = true;
region = "local";
rootCredentialsFile = config.sops.secrets.minio-root-credentials.path;
};
networking.firewall.allowedTCPPorts = [ 9000 9001 ];
};
}