diff options
author | Pascal Bach <pascal.bach@nextrem.ch> | 2023-07-03 21:50:56 +0200 |
---|---|---|
committer | Pascal Bach <pascal.bach@nextrem.ch> | 2023-07-03 21:51:02 +0200 |
commit | fc478ad9ffc6086ebf04e407a922ac43f94c4d25 (patch) | |
tree | 008e78b374404af1d887e7cc93bffc33650fdd3b /nixos/modules/services/web-servers/minio.nix | |
parent | 2920b6fc16a9ed5d51429e94238b28306ceda79e (diff) | |
download | nixpkgs-fc478ad9ffc6086ebf04e407a922ac43f94c4d25.tar nixpkgs-fc478ad9ffc6086ebf04e407a922ac43f94c4d25.tar.gz nixpkgs-fc478ad9ffc6086ebf04e407a922ac43f94c4d25.tar.bz2 nixpkgs-fc478ad9ffc6086ebf04e407a922ac43f94c4d25.tar.lz nixpkgs-fc478ad9ffc6086ebf04e407a922ac43f94c4d25.tar.xz nixpkgs-fc478ad9ffc6086ebf04e407a922ac43f94c4d25.tar.zst nixpkgs-fc478ad9ffc6086ebf04e407a922ac43f94c4d25.zip |
nixos/minio: allow distributed nodes
Diffstat (limited to 'nixos/modules/services/web-servers/minio.nix')
-rw-r--r-- | nixos/modules/services/web-servers/minio.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/web-servers/minio.nix b/nixos/modules/services/web-servers/minio.nix index 21bec4f63a8..0bc7421a0e3 100644 --- a/nixos/modules/services/web-servers/minio.nix +++ b/nixos/modules/services/web-servers/minio.nix @@ -30,8 +30,8 @@ in dataDir = mkOption { default = [ "/var/lib/minio/data" ]; - type = types.listOf types.path; - description = lib.mdDoc "The list of data directories for storing the objects. Use one path for regular operation and the minimum of 4 endpoints for Erasure Code mode."; + type = types.listOf (types.either types.path types.str); + description = lib.mdDoc "The list of data directories or nodes for storing the objects. Use one path for regular operation and the minimum of 4 endpoints for Erasure Code mode."; }; configDir = mkOption { @@ -99,7 +99,7 @@ in systemd = lib.mkMerge [{ tmpfiles.rules = [ "d '${cfg.configDir}' - minio minio - -" - ] ++ (map (x: "d '" + x + "' - minio minio - - ") cfg.dataDir); + ] ++ (map (x: "d '" + x + "' - minio minio - - ") (builtins.filter lib.types.path.check cfg.dataDir)); services.minio = { description = "Minio Object Storage"; |