.github
.vscode
docs
hydra
keys
lib
modules
systems
artemision
bob
jeeves
jeeves-jr
palatine-hill
attic
docker
keys
attic.nix
configuration.nix
default.nix
docker.nix
hardware.nix
hydra.nix
minio.nix
networking.nix
nextcloud.nix
secrets.yaml
services.nix
zfs.nix
rhapsody-in-green
users
utils
.envrc
.gitconfig
.gitignore
.sops.yaml
CONTRIBUTING.md
README.md
checks.nix
flake.lock
flake.nix
shell.nix
sops-mergetool.sh
statix.toml
treefmt.toml
25 lines
465 B
Nix
25 lines
465 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 = {
|
|
defaultSopsFile = ./secrets.yaml;
|
|
secrets = {
|
|
"minio/credentials" = {
|
|
owner = "minio";
|
|
};
|
|
};
|
|
};
|
|
}
|