nixos-config/modules/minio/default.nix

26 lines
473 B
Nix
Raw Normal View History

2023-01-06 00:11:11 +01:00
{ config, lib, ... }:
with lib;
let
cfg = config.eboskma.services.minio;
in
{
2024-02-05 11:46:52 +01:00
options.eboskma.services.minio = {
enable = mkEnableOption "minio";
};
2023-01-06 00:11:11 +01:00
config = mkIf cfg.enable {
services.minio = {
enable = true;
dataDir = [ "/data" ];
browser = true;
region = "local";
rootCredentialsFile = config.sops.secrets.minio-root-credentials.path;
};
2024-02-05 11:46:52 +01:00
networking.firewall.allowedTCPPorts = [
9000
9001
];
2023-01-06 00:11:11 +01:00
};
}