Add minio to Isaiah
This commit is contained in:
+22
-2
@@ -1,12 +1,32 @@
|
|||||||
{ pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
|
minioPort = 9000;
|
||||||
|
minioConsolePort = 9001;
|
||||||
|
in {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
minio-client
|
||||||
xfsprogs
|
xfsprogs
|
||||||
];
|
];
|
||||||
|
|
||||||
|
greg.proxies."minio-01.thehellings.lan".target = "http://localhost:9000";
|
||||||
|
|
||||||
fileSystems."/data/1" = {
|
fileSystems."/data/1" = {
|
||||||
device = "/dev/disk/by-id/wwn-0x5000c500c48728e9-part1";
|
device = "/dev/disk/by-id/wwn-0x5000c500c48728e9-part1";
|
||||||
fsType = "xfs";
|
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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user