Files
nixos/hosts/hosea/minio.nix
T
Greg Hellings b4a0561ed6 Simplify Hosea
Remove the Hosea gitlab runner service
Remove extra Hosea supports for the runner service
Setup S3 on Hosea, again, as an exposed service
2024-07-22 14:40:10 -05:00

33 lines
585 B
Nix

{ config, pkgs, ... }:
let
minioPort = 9000;
minioConsolePort = 9001;
in {
fileSystems."/proxy" = {
device = "/dev/sda1";
fsType = "btrfs";
};
networking.firewall.allowedTCPPorts = [
80
minioPort
minioConsolePort
];
age.secrets.minio.file = ../../secrets/minio.age;
services.minio = {
enable = true;
dataDir = [ "/proxy/minio" ];
rootCredentialsFile = config.age.secrets.minio.path;
browser = true;
};
greg.proxies."s3.thehellings.lan".target = "http://127.0.0.1:${toString minioPort}";
environment.systemPackages = with pkgs; [
minio-client
];
}