Files
nixos/hosts/hosea/minio.nix
T

33 lines
585 B
Nix
Raw Normal View History

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