nixos-config/modules/minio/default.nix
Erwin Boskma 4cd0f83ce8
Some checks failed
/ check (push) Failing after 2m46s
Run nixfmt
2024-02-05 11:46:52 +01:00

25 lines
473 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
];
};
}