From db5efd333de6dad08ad232994b90df572073ec9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 11 Jan 2026 00:24:48 +0100 Subject: [PATCH] nixos/nextcloud-notify_push: assert that not the sqlite db backend is used It is only meant for development. See https://github.com/NixOS/nixpkgs/issues/476262#issuecomment-3723699550 Closes #476262 --- nixos/modules/services/web-apps/nextcloud-notify_push.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/modules/services/web-apps/nextcloud-notify_push.nix b/nixos/modules/services/web-apps/nextcloud-notify_push.nix index 66ad1fdc25ac..f6141e22d5c4 100644 --- a/nixos/modules/services/web-apps/nextcloud-notify_push.nix +++ b/nixos/modules/services/web-apps/nextcloud-notify_push.nix @@ -72,6 +72,13 @@ in ); config = lib.mkIf cfg.enable { + assertions = [ + { + assertion = config.services.nextcloud.config.dbtype != "sqlite"; + message = "notify_push only supports Nextcloud's with either a Postgres or MariaDB database, not sqlite."; + } + ]; + systemd.services = { nextcloud-notify_push = { description = "Push daemon for Nextcloud clients";