cloud broken

This commit is contained in:
death916 2025-06-05 06:57:02 -07:00
parent 1a3cc00701
commit 09d50dd2c0
3 changed files with 1499 additions and 0 deletions

View file

@ -88,6 +88,19 @@ in
phpOptions = lib.mkForce { "memory_limit" = "2G"; };
};
# --- Attempt to neutralize setup/update services ---
# This tells systemd that these services should not be started as dependencies by anything.
# And if they are somehow started, they will just run `/bin/true` which does nothing and exits successfully.
systemd.services."nextcloud-setup.service" = {
wantedBy = lib.mkForce [ ]; # Prevent auto-start
serviceConfig.ExecStart = lib.mkForce "${pkgs.coreutils}/bin/true"; # Do nothing successfully
};
systemd.services."nextcloud-update-db.service" = {
wantedBy = lib.mkForce [ ]; # Prevent auto-start
serviceConfig.ExecStart = lib.mkForce "${pkgs.coreutils}/bin/true"; # Do nothing successfully
};
users.users.nextcloud = { isSystemUser = true; group = "nextcloud"; };
users.groups.nextcloud = {};