-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nextcloud25Packages.apps.recognize: init at 3.3.6 #211631
Conversation
Are you searching for extraConfig https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/web-apps/nextcloud.nix#L606-L621 ? I vaguely remember that this gets merged into the DB but I am not fully sure anymore. Maybe we can add something to overrideConfig https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/web-apps/nextcloud.nix#L790 ? I am using recognize on my nextcloud, although installed through the app store. If you have any questions feel free to ask me directly or in chat. I have the following dirty change for the setup service to make recognize download a required library because nextcloud is somehow not getting my PATH changes.
I also added the following packages to the nextcloud user:
|
@SuperSandro2000 Thanks for your insight! If I might ask why add the packages to the user not the path of the phpfpm service? And I think you meant to write preStart or postStart not script for your workaround did you? |
Updates sometimes break and having the package available makes it easier to fix up by hand.
The app only support nodejs 14, so no. |
thanks, did you do something to tell |
I think I just wrote the static path ( |
Thank you, this is another reason to put it in the user packages.
…On 6 July 2023 15:50:36 CEST, Sandro ***@***.***> wrote:
I think I just wrote the static path (``/etc/profiles/per-user/nextcloud/bin/node``) from the user packages into settings
--
Reply to this email directly or view it on GitHub:
#211631 (comment)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
We can probably inject that config setting somehow but I didn't dug into that. |
I don't know how. That's what I wanted to express with
|
We could just run psql to inject that row in postStart. I don't really have a better idea. |
I tried the workaround above to edit the nextcloud-setup service and I got the following error from npm:
|
@SuperSandro2000 has your config changed since then? I'm having the same issue with PATH not updating, even when overriding |
Probably, I am setting the PATH for the user, that cron, systemd services, etc. all contain it. |
I also try to add Recognise in #333545 , but I took another approach, as the app requires not only the release but also the content of the repo containing the models. |
|
Completed in #333545 |
I get
originating in https://github.com/nextcloud/recognize/blob/v3.3.6/lib/Migration/InstallDeps.php when adding it to
extraApps
.Is there a standard way to declaratively change settings in the databse? In particular, I want to set the path to the Node.js binary. See https://github.com/nextcloud/recognize/blob/v3.3.6/lib/Migration/InstallDeps.php#L76.
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes