From 553a03b971d18e5a69e217552c973587b7a0d315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?= Date: Thu, 5 Sep 2024 15:33:47 +0200 Subject: [PATCH] Run `pixelfed-data-setup` only after `ensure-garage` --- pixelfed.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pixelfed.nix b/pixelfed.nix index 03b6d61..5649018 100644 --- a/pixelfed.nix +++ b/pixelfed.nix @@ -47,4 +47,10 @@ in AWS_ENDPOINT = "http://s3.garage.localhost:3900"; AWS_USE_PATH_STYLE_ENDPOINT = false; }; + + ## Only ever run `pixelfed-data-setup` after `ensure-garage` has done its job. + ## Otherwise, everything crashed dramatically. + systemd.services.pixelfed-data-setup = { + after = [ "ensure-garage.service" ]; + }; }