···30303131 dataDir = mkOption {
3232 default = [ "/var/lib/minio/data" ];
3333- type = types.listOf types.path;
3434- 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.";
3333+ type = types.listOf (types.either types.path types.str);
3434+ 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.";
3535 };
36363737 configDir = mkOption {
···9999 systemd = lib.mkMerge [{
100100 tmpfiles.rules = [
101101 "d '${cfg.configDir}' - minio minio - -"
102102- ] ++ (map (x: "d '" + x + "' - minio minio - - ") cfg.dataDir);
102102+ ] ++ (map (x: "d '" + x + "' - minio minio - - ") (builtins.filter lib.types.path.check cfg.dataDir));
103103104104 services.minio = {
105105 description = "Minio Object Storage";