From 0fdcf8a79138d897cd11a14410c512e55eeae947 Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Sat, 12 Apr 2025 15:56:54 +0400 Subject: [PATCH] nextcloud,auth: disable integration with Kanidm when sso is disabled --- sp-modules/nextcloud/module.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sp-modules/nextcloud/module.nix b/sp-modules/nextcloud/module.nix index ca93724..8c74267 100644 --- a/sp-modules/nextcloud/module.nix +++ b/sp-modules/nextcloud/module.nix @@ -413,5 +413,12 @@ in }; }; }) + (lib.mkIf (! is-auth-enabled) { + systemd.services.nextcloud-setup = { + script = '' + ${occ} app:disable user_oidc + ''; + }; + }) ]); }