From db474477c93769e450d7dc1115456220edb1d622 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Fri, 8 Dec 2023 17:54:39 +0100 Subject: [PATCH] fix(garage): Fix chunked file uploads from nextcloud --- machines/storage01/garage.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/machines/storage01/garage.nix b/machines/storage01/garage.nix index 4939e62..484dfd1 100644 --- a/machines/storage01/garage.nix +++ b/machines/storage01/garage.nix @@ -13,7 +13,15 @@ in { services.garage = { enable = true; - package = pkgs.garage_0_9; + package = pkgs.garage_0_9.overrideAttrs (old: { + patches = (old.patches or [ ]) ++ [ + # Allow 0 as a part number marker + (pkgs.fetchpatch { + url = "https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/670.patch"; + hash = "sha256-28ctLl1qscMRj2JEVnmhuLyK1Avub8QeyfQFxAK0y08="; + }) + ]; + }); settings = { inherit data_dir metadata_dir;