lol

nixos/minio: allow distributed nodes

+3 -3
+3 -3
nixos/modules/services/web-servers/minio.nix
··· 30 30 31 31 dataDir = mkOption { 32 32 default = [ "/var/lib/minio/data" ]; 33 - type = types.listOf types.path; 34 - 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."; 33 + type = types.listOf (types.either types.path types.str); 34 + 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."; 35 35 }; 36 36 37 37 configDir = mkOption { ··· 99 99 systemd = lib.mkMerge [{ 100 100 tmpfiles.rules = [ 101 101 "d '${cfg.configDir}' - minio minio - -" 102 - ] ++ (map (x: "d '" + x + "' - minio minio - - ") cfg.dataDir); 102 + ] ++ (map (x: "d '" + x + "' - minio minio - - ") (builtins.filter lib.types.path.check cfg.dataDir)); 103 103 104 104 services.minio = { 105 105 description = "Minio Object Storage";