From bdab5f4db1cc8f3bbdb860396ede62ac509b6953 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Thu, 20 Jun 2024 17:30:38 -0500 Subject: [PATCH] Add minio to Isaiah --- hosts/myself/minio.nix | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/hosts/myself/minio.nix b/hosts/myself/minio.nix index 3550781..67adcdd 100644 --- a/hosts/myself/minio.nix +++ b/hosts/myself/minio.nix @@ -1,12 +1,32 @@ -{ pkgs, ... }: +{ config, pkgs, ... }: -{ +let + minioPort = 9000; + minioConsolePort = 9001; +in { environment.systemPackages = with pkgs; [ + minio-client xfsprogs ]; + greg.proxies."minio-01.thehellings.lan".target = "http://localhost:9000"; + fileSystems."/data/1" = { device = "/dev/disk/by-id/wwn-0x5000c500c48728e9-part1"; fsType = "xfs"; }; + + networking.firewall.allowedTCPPorts = [ + minioPort + minioConsolePort + ]; + + age.secrets.minio.file = ../../secrets/minio.age; + + services.minio = { + enable = true; + dataDir = [ "/data/1/minio" ]; + rootCredentialsFile = config.age.secrets.minio.path; + browser = true; + }; }