nextcloud26, nixos/web-apps/nextcloud: drop the autocreate db user patch and wire the default in the NixOS module

This commit is contained in:
Raito Bezarius
2023-03-21 17:34:23 +01:00
parent d7a27b38a2
commit dd96b7d8b4
3 changed files with 5 additions and 158 deletions

View File

@@ -982,6 +982,9 @@ in {
'';
serviceConfig.Type = "oneshot";
serviceConfig.User = "nextcloud";
# On Nextcloud ≥ 26, it is not necessary to patch the database files to prevent
# an automatic creation of the database user.
environment.NC_setup_create_db_user = lib.mkIf (nextcloudGreaterOrEqualThan "26") "false";
};
nextcloud-cron = {
after = [ "nextcloud-setup.service" ];