.github
.vscode
docs
hydra
keys
lib
modules
pkgs
systems
artemision
palatine-hill
attic
docker
haproxy
acme.nix
configuration.nix
default.nix
firewall.nix
gitea.nix
hardware-changes.nix
hardware.nix
hydra.nix
loki.nix
minio.nix
networking.nix
nextcloud.nix
postgresql.nix
samba.nix
secrets.yaml
typhon.nix
vars.nix
zfs.nix
users
utils
.envrc
.gitconfig
.gitignore
.sops.yaml
CONTRIBUTING.md
README.md
checks.nix
flake.lock
flake.nix
shell.nix
statix.toml
treefmt.toml
24 lines
427 B
Nix
24 lines
427 B
Nix
{ config, ... }:
|
|
|
|
let
|
|
base_path = "/ZFS/ZFS-primary/minio";
|
|
in
|
|
{
|
|
services.minio = {
|
|
enable = true;
|
|
rootCredentialsFile = config.sops.secrets."minio/credentials".path;
|
|
listenAddress = ":8500";
|
|
dataDir = [ "${base_path}/data" ];
|
|
consoleAddress = ":8501";
|
|
configDir = "${base_path}/config";
|
|
};
|
|
|
|
sops = {
|
|
secrets = {
|
|
"minio/credentials" = {
|
|
owner = "minio";
|
|
};
|
|
};
|
|
};
|
|
}
|