mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 18:28:41 +02:00
* feat: upgrade nixpkgs stable to 25.11, update nixos-apple-silicon, ghostty, anyrun, etc * fix: asahi-nixos - revert mesa to 25.2.6 * fix: disable gitui - it's broken on aarch64-darwin currently --------- Signed-off-by: Ryan Yin <xiaoyin_c@qq.com>
21 lines
700 B
Nix
21 lines
700 B
Nix
{ config, ... }:
|
|
let
|
|
dataDir = [ "/data/apps/minio/data" ];
|
|
configDir = "/data/apps/minio/config";
|
|
in
|
|
{
|
|
# https://github.com/NixOS/nixpkgs/blob/nixos-25.11/nixos/modules/services/web-servers/minio.nix
|
|
services.minio = {
|
|
enable = true;
|
|
browser = true; # Enable or disable access to web UI.
|
|
|
|
inherit dataDir configDir;
|
|
listenAddress = "127.0.0.1:9096";
|
|
consoleAddress = "127.0.0.1:9097"; # Web UI
|
|
region = "us-east-1"; # default to us-east-1, same as AWS S3.
|
|
|
|
# File containing the MINIO_ROOT_USER, default is “minioadmin”, and MINIO_ROOT_PASSWORD (length >= 8), default is “minioadmin”;
|
|
rootCredentialsFile = config.age.secrets."minio.env".path;
|
|
};
|
|
}
|