mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-09 22:22:40 +02:00
662316c18a
* flake.lock: Update
Flake lock file updates:
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/7aaa00e7cc9be6c316cb5f6617bd740dd435c59d?narHash=sha256-WacE23EbHTsBKvr8cu%2B1DFNbP6Rh1brHUH5SDUI0NQI%3D' (2026-04-30)
→ 'github:NixOS/nixpkgs/e9a7635a57597d9754eccebdfc7045e6c8600e6b?narHash=sha256-u6WU/yd/o8iYQrHX3RAwO1hYa3LkoSL%2BWNQD0rJfJZQ%3D' (2026-05-29)
* feat: upgrade to nixos 26.05
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-26.05/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;
|
|
};
|
|
}
|