Files
nixos/hosts/myself/minio.nix
T

33 lines
615 B
Nix
Raw Normal View History

2024-06-20 17:30:38 -05:00
{ config, pkgs, ... }:
2024-06-20 17:21:47 -05:00
2024-06-20 17:30:38 -05:00
let
minioPort = 9000;
minioConsolePort = 9001;
in {
2024-06-20 17:21:47 -05:00
environment.systemPackages = with pkgs; [
2024-06-20 17:30:38 -05:00
minio-client
2024-06-20 17:21:47 -05:00
xfsprogs
];
2024-06-20 17:30:38 -05:00
greg.proxies."minio-01.thehellings.lan".target = "http://localhost:9000";
2024-06-20 17:21:47 -05:00
fileSystems."/data/1" = {
device = "/dev/disk/by-id/wwn-0x5000c500c48728e9-part1";
fsType = "xfs";
};
2024-06-20 17:30:38 -05:00
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;
};
2024-06-20 17:21:47 -05:00
}