Setup minio properly

This commit is contained in:
Greg Hellings
2024-06-20 14:35:29 -05:00
parent 071af09085
commit 4bbb39f3c1
3 changed files with 30 additions and 15 deletions
+29
View File
@@ -0,0 +1,29 @@
{ config, pkgs, ... }:
let
minioPort = 9000;
minioConsolePort = 9001;
in {
fileSystems."/proxy" = {
device = "/dev/sda1";
fsType = "btrfs";
};
networking.firewall.allowedTCPPorts = [
minioPort
minioConsolePort
];
age.secrets.minio.file = ../../secrets/minio.age;
services.minio = {
enable = true;
dataDir = [ "/proxy/minio" ];
rootCredentialsFile = config.age.secrets.minio.path;
browser = true;
};
environment.systemPackages = with pkgs; [
minio-client
];
}