diff --git a/nextcloud.nix b/nextcloud.nix index da260ca..c82c36a 100644 --- a/nextcloud.nix +++ b/nextcloud.nix @@ -42,4 +42,12 @@ port = 8081; } ]; + + # The cron timer can fire before nextcloud-setup.service has finished on + # first boot, causing a "Not installed" failure. Make the cron service wait + # for setup to complete before it's allowed to run. + systemd.services.nextcloud-cron = { + after = [ "nextcloud-setup.service" ]; + requires = [ "nextcloud-setup.service" ]; + }; }